-require 'test_helper'
+require "test_helper"
class OauthClientsControllerTest < ActionController::TestCase
fixtures :users, :client_applications
:client_application => {
:name => "Test Application"
}
- }, { :user => user }
+ }, { :user => user }
end
assert_response :success
assert_template "new"
:name => "Test Application",
:url => "http://test.example.com/"
}
- }, { :user => user }
+ }, { :user => user }
end
assert_response :redirect
assert_redirected_to oauth_client_path(:id => ClientApplication.find_by_name("Test Application").id)
:name => "New Name",
:url => nil
}
- }, { :user => user }
+ }, { :user => user }
assert_response :success
assert_template "edit"
:name => "New Name",
:url => "http://new.example.com/url"
}
- }, { :user => user }
+ }, { :user => user }
assert_response :redirect
assert_redirected_to oauth_client_path(:id => client.id)
end