Sha256: 119b50900109259fb6ac57d93c53745331d33757592703359da4759afc9afd15

Contents?: true

Size: 486 Bytes

Versions: 2

Compression:

Stored size: 486 Bytes

Contents

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


require File.dirname(__FILE__) + '/base.rb'


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

2 entries across 2 versions & 1 rubygems

Version Path
rufus-verbs-1.0.1 test/uri_test.rb
rufus-verbs-1.0.0 test/uri_test.rb