Fix Style/RedundantParentheses rubocop issues
This commit is contained in:
@@ -24,9 +24,9 @@ feature 'Managed User' do
|
||||
|
||||
within(".account-info") do
|
||||
expect(page).to have_content "Identified as"
|
||||
expect(page).to have_content (user.username).to_s
|
||||
expect(page).to have_content (user.email).to_s
|
||||
expect(page).to have_content (user.document_number).to_s
|
||||
expect(page).to have_content user.username.to_s
|
||||
expect(page).to have_content user.email.to_s
|
||||
expect(page).to have_content user.document_number.to_s
|
||||
end
|
||||
end
|
||||
|
||||
@@ -45,9 +45,9 @@ feature 'Managed User' do
|
||||
|
||||
within(".account-info") do
|
||||
expect(page).to have_content "Identified as"
|
||||
expect(page).to have_content (user.username).to_s
|
||||
expect(page).to have_content (user.email).to_s
|
||||
expect(page).to have_content (user.document_number).to_s
|
||||
expect(page).to have_content user.username.to_s
|
||||
expect(page).to have_content user.email.to_s
|
||||
expect(page).to have_content user.document_number.to_s
|
||||
end
|
||||
end
|
||||
|
||||
@@ -78,9 +78,9 @@ feature 'Managed User' do
|
||||
|
||||
within(".account-info") do
|
||||
expect(page).to have_content "Identified as"
|
||||
expect(page).to have_content (user.username).to_s
|
||||
expect(page).to have_content (user.email).to_s
|
||||
expect(page).to have_content (user.document_number).to_s
|
||||
expect(page).to have_content user.username.to_s
|
||||
expect(page).to have_content user.email.to_s
|
||||
expect(page).to have_content user.document_number.to_s
|
||||
end
|
||||
end
|
||||
|
||||
@@ -106,9 +106,9 @@ feature 'Managed User' do
|
||||
user = User.last
|
||||
within(".account-info") do
|
||||
expect(page).to have_content "Identified as"
|
||||
expect(page).to have_content (user.username).to_s
|
||||
expect(page).to have_content (user.email).to_s
|
||||
expect(page).to have_content (user.document_number).to_s
|
||||
expect(page).to have_content user.username.to_s
|
||||
expect(page).to have_content user.email.to_s
|
||||
expect(page).to have_content user.document_number.to_s
|
||||
end
|
||||
end
|
||||
|
||||
@@ -134,8 +134,8 @@ feature 'Managed User' do
|
||||
user = User.last
|
||||
within(".account-info") do
|
||||
expect(page).to have_content "Identified as"
|
||||
expect(page).to have_content (user.username).to_s
|
||||
expect(page).to have_content (user.document_number).to_s
|
||||
expect(page).to have_content user.username.to_s
|
||||
expect(page).to have_content user.document_number.to_s
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -151,14 +151,14 @@ feature 'Managed User' do
|
||||
|
||||
within(".account-info") do
|
||||
expect(page).to have_content "Identified as"
|
||||
expect(page).to have_content (user.username).to_s
|
||||
expect(page).to have_content user.username.to_s
|
||||
|
||||
click_link "Change user"
|
||||
end
|
||||
|
||||
expect(page).to have_content "User session signed out successfully."
|
||||
expect(page).to_not have_content "Identified as"
|
||||
expect(page).to_not have_content (user.username).to_s
|
||||
expect(page).to_not have_content user.username.to_s
|
||||
expect(current_path).to eq(management_root_path)
|
||||
end
|
||||
|
||||
|
||||
@@ -16,9 +16,9 @@ feature 'Proposals' do
|
||||
|
||||
within(".account-info") do
|
||||
expect(page).to have_content "Identified as"
|
||||
expect(page).to have_content (user.username).to_s
|
||||
expect(page).to have_content (user.email).to_s
|
||||
expect(page).to have_content (user.document_number).to_s
|
||||
expect(page).to have_content user.username.to_s
|
||||
expect(page).to have_content user.email.to_s
|
||||
expect(page).to have_content user.document_number.to_s
|
||||
end
|
||||
|
||||
fill_in 'proposal_title', with: 'Help refugees'
|
||||
@@ -119,9 +119,9 @@ feature 'Proposals' do
|
||||
|
||||
within(".account-info") do
|
||||
expect(page).to have_content "Identified as"
|
||||
expect(page).to have_content (user.username).to_s
|
||||
expect(page).to have_content (user.email).to_s
|
||||
expect(page).to have_content (user.document_number).to_s
|
||||
expect(page).to have_content user.username.to_s
|
||||
expect(page).to have_content user.email.to_s
|
||||
expect(page).to have_content user.document_number.to_s
|
||||
end
|
||||
|
||||
within(".proposals-list") do
|
||||
|
||||
@@ -29,7 +29,7 @@ feature 'Users' do
|
||||
expect(user).to be_level_three_verified
|
||||
expect(user).to be_residence_verified
|
||||
expect(user).to_not be_confirmed
|
||||
expect(user.date_of_birth).to have_content (Date.new(1980, 12, 31))
|
||||
expect(user.date_of_birth).to have_content Date.new(1980, 12, 31)
|
||||
|
||||
sent_token = /.*confirmation_token=(.*)".*/.match(ActionMailer::Base.deliveries.last.body.to_s)[1]
|
||||
visit user_confirmation_path(confirmation_token: sent_token)
|
||||
@@ -69,7 +69,7 @@ feature 'Users' do
|
||||
expect(user).to be_level_three_verified
|
||||
expect(user).to be_residence_verified
|
||||
expect(user).to be_confirmed
|
||||
expect(user.date_of_birth).to have_content (Date.new(1980, 12, 31))
|
||||
expect(user.date_of_birth).to have_content Date.new(1980, 12, 31)
|
||||
end
|
||||
|
||||
scenario 'Delete a level 2 user account from document verification page', :js do
|
||||
|
||||
Reference in New Issue
Block a user