diff options
author | AvnerCohen <israbirding@gmail.com> | 2012-10-31 21:19:44 +0200 |
---|---|---|
committer | AvnerCohen <israbirding@gmail.com> | 2012-10-31 21:19:44 +0200 |
commit | d20a52930aa80d7f219465d6fc414a68b16ef2a8 (patch) | |
tree | 599a0f021b1b8a321fe0fafb426a885ae534f4c5 /actionpack/lib/action_dispatch/testing/integration.rb | |
parent | be4a4cd38ff2c2db0f6b69bb72fb3557bd5a6e21 (diff) | |
download | rails-d20a52930aa80d7f219465d6fc414a68b16ef2a8.tar.gz rails-d20a52930aa80d7f219465d6fc414a68b16ef2a8.tar.bz2 rails-d20a52930aa80d7f219465d6fc414a68b16ef2a8.zip |
1.9 hash syntax changes to docs
Diffstat (limited to 'actionpack/lib/action_dispatch/testing/integration.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/integration.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/actionpack/lib/action_dispatch/testing/integration.rb b/actionpack/lib/action_dispatch/testing/integration.rb index 4bd7b69642..2928263163 100644 --- a/actionpack/lib/action_dispatch/testing/integration.rb +++ b/actionpack/lib/action_dispatch/testing/integration.rb @@ -429,8 +429,8 @@ module ActionDispatch # assert_equal 200, status # # # post the login and follow through to the home page - # post "/login", :username => people(:jamis).username, - # :password => people(:jamis).password + # post "/login", username: people(:jamis).username, + # password: people(:jamis).password # follow_redirect! # assert_equal 200, status # assert_equal "/home", path @@ -463,13 +463,13 @@ module ActionDispatch # module CustomAssertions # def enter(room) # # reference a named route, for maximum internal consistency! - # get(room_url(:id => room.id)) + # get(room_url(id: room.id)) # assert(...) # ... # end # # def speak(room, message) - # xml_http_request "/say/#{room.id}", :message => message + # xml_http_request "/say/#{room.id}", message: message # assert(...) # ... # end @@ -479,8 +479,8 @@ module ActionDispatch # open_session do |sess| # sess.extend(CustomAssertions) # who = people(who) - # sess.post "/login", :username => who.username, - # :password => who.password + # sess.post "/login", username: who.username, + # password: who.password # assert(...) # end # end |