Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Removed authorize.net stubbing
Browse files Browse the repository at this point in the history
  • Loading branch information
nbibler committed Mar 4, 2010
1 parent 02e564b commit e6eda62
Showing 1 changed file with 14 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,21 @@ class FacebookTest < ActionController::IntegrationTest
assert_equal controller.current_user, user
end

stubbing_any_authorize_net_customer_profile_request(:success => true, :id => '54321') do

should 'create a new user when the facebook uid is not found' do
assert_nil User.find_by_facebook_uid(8055)

visit city_url(City.default)
assert controller.signed_in?
assert_equal controller.current_user.facebook_uid, 8055
end
should 'create a new user when the facebook uid is not found' do
assert_nil User.find_by_facebook_uid(8055)

should 'copy the facebook user details' do
visit city_url(City.default)
assert controller.signed_in?
assert_equal controller.current_user.first_name, 'Dave'
assert_equal controller.current_user.last_name, 'Fetterman'
assert_equal controller.current_user.display_name, 'Dave Fetterman'
assert_equal controller.current_user.email, 'bob@facebook.com'
end

visit city_url(City.default)
assert controller.signed_in?
assert_equal controller.current_user.facebook_uid, 8055
end

should 'copy the facebook user details' do
visit city_url(City.default)
assert controller.signed_in?
assert_equal controller.current_user.first_name, 'Dave'
assert_equal controller.current_user.last_name, 'Fetterman'
assert_equal controller.current_user.display_name, 'Dave Fetterman'
assert_equal controller.current_user.email, 'bob@facebook.com'
end

end
Expand Down

0 comments on commit e6eda62

Please sign in to comment.