test/uri_test.rb in rufus-verbs-0.10 vs test/uri_test.rb in rufus-verbs-1.0.0
- old
+ new
@@ -5,29 +5,27 @@
# jmettraux@gmail.com
#
# Mon Feb 18 11:05:07 JST 2008
#
-require 'test/unit'
-require 'testbase'
-require 'rufus/verbs'
+require File.dirname(__FILE__) + '/base.rb'
class UriTest < Test::Unit::TestCase
- include TestBaseMixin
+ include TestBaseMixin
- include Rufus::Verbs
+ include Rufus::Verbs
- def test_0
+ def test_0
- uri = URI.parse "http://localhost:7777/items"
+ uri = URI.parse "http://localhost:7777/items"
- res = get :uri => uri
- assert_equal 200, res.code.to_i
- assert_equal "{}", res.body.strip
+ res = get :uri => uri
+ assert_equal 200, res.code.to_i
+ assert_equal "{}", res.body.strip
- res = get uri
- assert_equal 200, res.code.to_i
- assert_equal "{}", res.body.strip
- end
+ res = get uri
+ assert_equal 200, res.code.to_i
+ assert_equal "{}", res.body.strip
+ end
end