spec/omnicontacts/middleware/oauth2_spec.rb in omnicontacts-0.2.2 vs spec/omnicontacts/middleware/oauth2_spec.rb in omnicontacts-0.2.3
- old
+ new
@@ -54,9 +54,9 @@
end
it "should redirect to failure page because user did not allow access to contacts list" do
get '/redirect_path?error=not_authorized'
last_response.should be_redirect
- last_response.headers["location"].should eq("/contacts/failure?error_message=not_authorized")
+ last_response.headers["location"].should eq("/contacts/failure?error_message=not_authorized&importer=oauth2middleware")
end
end
end