spec/omnicontacts/middleware/base_oauth_spec.rb in omnicontacts-0.2.2 vs spec/omnicontacts/middleware/base_oauth_spec.rb in omnicontacts-0.2.3
- old
+ new
@@ -34,10 +34,10 @@
it "should redurect to failure url" do
OmniContacts.integration_test.mock(:testprovider, "some_error" )
get "/contacts/testprovider"
get "/contacts/testprovider/callback"
last_response.should be_redirect
- last_response.headers["location"].should eq("/contacts/failure?error_message=internal_error")
+ last_response.headers["location"].should eq("/contacts/failure?error_message=internal_error&importer=testprovider")
end
after(:all) do
OmniContacts.integration_test.enabled = false
OmniContacts.integration_test.clear_mocks
\ No newline at end of file