Fix all Style/UnneededInterpolation rubocop issues and remove from rubocop_tod
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}"
|
||||
expect(page).to have_content "#{user.email}"
|
||||
expect(page).to have_content "#{user.document_number}"
|
||||
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}"
|
||||
expect(page).to have_content "#{user.email}"
|
||||
expect(page).to have_content "#{user.document_number}"
|
||||
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}"
|
||||
expect(page).to have_content "#{user.email}"
|
||||
expect(page).to have_content "#{user.document_number}"
|
||||
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}"
|
||||
expect(page).to have_content "#{user.email}"
|
||||
expect(page).to have_content "#{user.document_number}"
|
||||
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}"
|
||||
expect(page).to have_content "#{user.document_number}"
|
||||
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}"
|
||||
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}"
|
||||
expect(page).to_not have_content (user.username).to_s
|
||||
expect(current_path).to eq(management_root_path)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user