Skip to content

Commit

Permalink
remove twitter spec
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Jul 20, 2024
1 parent d9a905c commit cdcb97f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions spec/requests/users_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@

let(:user) { FactoryBot.create(:user) }

it "should sign in with twitter" do
omni_params = oauth2_mock(:twitter)
user.oauth_credentials.create(provider: omni_params.provider, uid: omni_params.uid)
# it "should sign in with twitter" do
# omni_params = oauth2_mock(:twitter)
# user.oauth_credentials.create(provider: omni_params.provider, uid: omni_params.uid)

expect {
post user_twitter_omniauth_callback_url, env: {"omniauth.auth": omni_params}
}.to change(User, :count).by(0)
expect(response).to redirect_to(new_user_session_path)
expect(flash[:notice]).to include("We are synchronizing your twitter data")
end
# expect {
# post user_twitter_omniauth_callback_url, env: {"omniauth.auth": omni_params}
# }.to change(User, :count).by(0)
# expect(response).to redirect_to(new_user_session_path)
# expect(flash[:notice]).to include("We are synchronizing your twitter data")
# end

it "should sign in with discord" do
omni_params = oauth2_mock(:discord)
Expand Down

0 comments on commit cdcb97f

Please sign in to comment.