-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed remaining tests, normalize describe calls, include ActiveJob::T…
…estHelper everywhere
- Loading branch information
Showing
98 changed files
with
123 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
require 'rails_helper' | ||
|
||
describe Api::V1::MessagesController, type: :controller, api: true, version: :v1 do | ||
include ActiveJob::TestHelper | ||
|
||
let!(:untrusted_application) { | ||
FactoryBot.create :doorkeeper_application, | ||
email_from_address: '[email protected]' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
spec/controllers/newflow/password_management_controller_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
require 'rails_helper' | ||
|
||
module Newflow | ||
RSpec.describe SocialAuthController, type: :controller do | ||
describe SocialAuthController, type: :controller do | ||
describe 'GET #oauth_callback' do | ||
let(:info) do | ||
{ email: '[email protected]', name: Faker::Name.name } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,8 @@ | |
) | ||
) | ||
|
||
perform_enqueued_jobs | ||
|
||
open_email('[email protected]') | ||
password_reset_link = get_path_from_absolute_link(current_email, 'a') | ||
visit password_reset_link | ||
|
@@ -63,6 +65,7 @@ | |
t(:'login_signup_form.password_reset_email_sent_description', email: '[email protected]') | ||
) | ||
) | ||
perform_enqueued_jobs | ||
open_email('[email protected]') | ||
expect(current_email).to have_content('reset') | ||
end | ||
|
@@ -85,6 +88,7 @@ | |
# expect(page).to have_content(I18n.t(:"login_signup_form.password_reset_email_sent")) | ||
# screenshot! | ||
# | ||
# perform_enqueued_jobs | ||
# open_email('[email protected]') | ||
# change_password_link_1 = get_path_from_absolute_link(current_email, 'a') | ||
# clear_emails | ||
|
@@ -99,6 +103,7 @@ | |
# click_on(I18n.t(:"login_signup_form.reset_my_password_button")) | ||
# expect(page).to have_content(I18n.t(:"login_signup_form.password_reset_email_sent")) | ||
# | ||
# perform_enqueued_jobs | ||
# open_email('[email protected]') | ||
# change_password_link_2 = get_path_from_absolute_link(current_email, 'a') | ||
# clear_emails | ||
|
@@ -116,6 +121,7 @@ | |
# click_on(I18n.t(:"login_signup_form.reset_my_password_button")) | ||
# expect(page).to have_content(I18n.t(:"login_signup_form.password_reset_email_sent")) | ||
# | ||
# perform_enqueued_jobs | ||
# open_email('[email protected]') | ||
# change_password_link_3 = get_path_from_absolute_link(current_email, 'a') | ||
# clear_emails | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -205,6 +205,8 @@ module Newflow | |
expect(page).to have_content(I18n.t(:"login_signup_form.password_reset_email_sent")) | ||
screenshot! | ||
|
||
perform_enqueued_jobs | ||
|
||
open_email('[email protected]') | ||
capture_email! | ||
change_password_link = get_path_from_absolute_link(current_email, 'a') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,8 @@ | |
# expect(page.first('input')["placeholder"]).to eq t(:"legacy.sessions.start.username_placeholder") | ||
# expect(page.first('input').text).to be_blank | ||
|
||
# perform_enqueued_jobs | ||
|
||
# open_email(email_address) | ||
# expect(current_email).to have_content('used on more than one') | ||
# expect(current_email).to have_content('user1 and user2') | ||
|
@@ -125,6 +127,8 @@ | |
# expect(page).to have_content(t(:"login_signup_form.password_reset_email_sent")) | ||
# screenshot! | ||
# | ||
# perform_enqueued_jobs | ||
# | ||
# open_email('[email protected]') | ||
# capture_email! | ||
# change_password_link = get_path_from_absolute_link(current_email, 'a') | ||
|
@@ -160,6 +164,8 @@ | |
expect(page).to have_content(t(:"legacy.identities.send_add.we_sent_email", emails: '[email protected]')) | ||
screenshot! | ||
|
||
perform_enqueued_jobs | ||
|
||
open_email('[email protected]') | ||
expect(current_email).to have_content("Click here to add") | ||
capture_email! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.