Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- require 'rack/test'
- require 'app'
- Spec::Runner.configure do |config|
- config.include Rack::Test::Methods
- end
- def app
- @app ||= App
- end
- describe "requesting a url with [] params" do
- it "should include the contents of the params array" do
- get "/direct?box[]=1&box[]=2"
- last_response.body.should eql('{"box"=>["1", "2"]}')
- end
- end
Add Comment
Please, Sign In to add comment