Skip to content
Browse files

Refactor the new test/test_query_string.rb to use the test_helper

  • Loading branch information...
1 parent 48e4091 commit 59d365411c0fc021164e02c00a5b953dbe5fd061 @chrisk chrisk committed Dec 21, 2008
Showing with 3 additions and 6 deletions.
  1. +3 −6 test/test_query_string.rb
View
9 test/test_query_string.rb
@@ -1,9 +1,6 @@
-$:.unshift "#{File.dirname(__FILE__)}/../lib"
+require File.join(File.dirname(__FILE__), "test_helper")
-require 'test/unit'
-require 'fake_web'
-
-class TestFakeWeb < Test::Unit::TestCase
+class TestFakeWebQueryString < Test::Unit::TestCase
def setup
FakeWeb.clean_registry
@@ -26,5 +23,5 @@ def test_registry_sort_query_params
def test_registry_sort_query_params_sorts_by_value_if_keys_collide
assert_equal "a=1&a=2&b=2", FakeWeb::Registry.instance.send(:sort_query_params, "a=2&b=2&a=1")
end
-
+
end

0 comments on commit 59d3654

Please sign in to comment.
Something went wrong with that request. Please try again.