Sha256: 54f266734340344314d739b2ed9693c52da5b3ff80e3ac49abfb079c4023d8aa

Contents?: true

Size: 539 Bytes

Versions: 3

Compression:

Stored size: 539 Bytes

Contents

#
# Testing rufus-verbs
#
# jmettraux@gmail.com
#
# Mon Feb 18 11:05:07 JST 2008
#

require 'test/unit'
require 'testbase'

require 'rufus/verbs'


class UriTest < Test::Unit::TestCase
    include TestBaseMixin

    include Rufus::Verbs

    def test_0

        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
        assert_equal 200, res.code.to_i
        assert_equal "{}", res.body.strip
    end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rufus-verbs-0.8 test/uri_test.rb
rufus-verbs-0.10 test/uri_test.rb
rufus-verbs-0.9 test/uri_test.rb