Commit d4f0d945 authored by Etienne Baqué's avatar Etienne Baqué

Updated existing tests following char substitution removal

parent b715a477
......@@ -38,7 +38,7 @@ describe 'User creates feature flag', :js do
it 'records audit event' do
visit(project_audit_events_path(project))
expect(page).to have_text("Created feature flag ci live trace with description \"For live trace\".")
expect(page).to have_text("Created feature flag ci_live_trace with description \"For live trace\".")
end
end
......
......@@ -33,6 +33,6 @@ describe 'User deletes feature flag', :js do
it 'records audit event' do
visit(project_audit_events_path(project))
expect(page).to have_text("Deleted feature flag ci live trace.")
expect(page).to have_text("Deleted feature flag ci_live_trace.")
end
end
......@@ -65,7 +65,7 @@ describe 'User updates feature flag', :js do
visit(project_audit_events_path(project))
expect(page).to(
have_text("Updated feature flag ci live trace. Updated rule review/* active state from true to false.")
have_text("Updated feature flag ci_live_trace. Updated rule review/* active state from true to false.")
)
end
end
......@@ -96,7 +96,7 @@ describe 'User updates feature flag', :js do
visit(project_audit_events_path(project))
expect(page).to(
have_text("Updated feature flag ci live trace")
have_text("Updated feature flag ci_live_trace")
)
end
end
......@@ -124,7 +124,7 @@ describe 'User updates feature flag', :js do
visit(project_audit_events_path(project))
expect(page).to(
have_text("Updated feature flag ci live trace")
have_text("Updated feature flag ci_live_trace")
)
end
end
......
......@@ -47,7 +47,7 @@ describe FeatureFlags::CreateService do
end
it 'creates audit event' do
expected_message = "Created feature flag <strong>feature flag</strong> "\
expected_message = "Created feature flag <strong>feature_flag</strong> "\
"with description <strong>\"description\"</strong>. "\
"Created rule <strong>*</strong> and set it as <strong>active</strong>. "\
"Created rule <strong>production</strong> and set it as <strong>inactive</strong>."
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment