Guest User

Untitled

a guest
May 25th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. require 'rubygems'
  2. require 'rack/test'
  3. require 'app'
  4.  
  5. Spec::Runner.configure do |config|
  6. config.include Rack::Test::Methods
  7. end
  8.  
  9. def app
  10. @app ||= App
  11. end
  12.  
  13. describe "requesting a url with [] params" do
  14. it "should include the contents of the params array" do
  15. get "/direct?box[]=1&box[]=2"
  16. last_response.body.should eql('{"box"=>["1", "2"]}')
  17. end
  18. end
Add Comment
Please, Sign In to add comment