Sha256: 3577b0414ee0d3098a885e853cba23bd8cd6a79bf2969aec28216576c59365c4

Contents?: true

Size: 327 Bytes

Versions: 5

Compression:

Stored size: 327 Bytes

Contents

require 'spec_helper'

describe Restfulie do
  
  it "should accept parameters in get requests" do
    result = Restfulie.at('http://localhost:4567/request_with_querystring').get(:foo => "bar", :bar => "foo")
    params  = JSON.parse(result.body)
    params["foo"].should == "bar"
    params["bar"].should == "foo"
  end
  
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
restfulie-nosqlite-1.0.4 tests/spec/requests/http/parameters_spec.rb
restfulie-1.1.1 tests/spec/requests/http/parameters_spec.rb
restfulie-1.1.0 tests/spec/requests/http/parameters_spec.rb
restfulie-nosqlite-1.0.3 tests/spec/requests/http/parameters_spec.rb
restfulie-1.0.3 tests/spec/requests/http/parameters_spec.rb