- post :create, {
- :display_name => user.display_name,
- :client_application => {
- :name => "Test Application",
- :url => "http://test.example.com/"
- }
- }, {
- :user => user
- }
+ post :create,
+ :params => { :display_name => user.display_name,
+ :client_application => { :name => "Test Application",
+ :url => "http://test.example.com/" } },
+ :session => { :user => user }