summaryrefslogtreecommitdiff
path: root/spec/features/projects/services
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/services')
-rw-r--r--spec/features/projects/services/user_activates_asana_spec.rb2
-rw-r--r--spec/features/projects/services/user_activates_assembla_spec.rb2
-rw-r--r--spec/features/projects/services/user_activates_atlassian_bamboo_ci_spec.rb2
-rw-r--r--spec/features/projects/services/user_activates_emails_on_push_spec.rb2
-rw-r--r--spec/features/projects/services/user_activates_flowdock_spec.rb2
-rw-r--r--spec/features/projects/services/user_activates_hipchat_spec.rb4
-rw-r--r--spec/features/projects/services/user_activates_irker_spec.rb2
-rw-r--r--spec/features/projects/services/user_activates_issue_tracker_spec.rb2
-rw-r--r--spec/features/projects/services/user_activates_jetbrains_teamcity_ci_spec.rb2
-rw-r--r--spec/features/projects/services/user_activates_jira_spec.rb8
-rw-r--r--spec/features/projects/services/user_activates_mattermost_slash_command_spec.rb8
-rw-r--r--spec/features/projects/services/user_activates_packagist_spec.rb2
-rw-r--r--spec/features/projects/services/user_activates_pivotaltracker_spec.rb2
-rw-r--r--spec/features/projects/services/user_activates_prometheus_spec.rb2
-rw-r--r--spec/features/projects/services/user_activates_pushover_spec.rb2
-rw-r--r--spec/features/projects/services/user_activates_slack_notifications_spec.rb2
-rw-r--r--spec/features/projects/services/user_activates_slack_slash_command_spec.rb4
17 files changed, 25 insertions, 25 deletions
diff --git a/spec/features/projects/services/user_activates_asana_spec.rb b/spec/features/projects/services/user_activates_asana_spec.rb
index c44e07dd3b4..948c930707c 100644
--- a/spec/features/projects/services/user_activates_asana_spec.rb
+++ b/spec/features/projects/services/user_activates_asana_spec.rb
@@ -19,6 +19,6 @@ describe 'User activates Asana' do
fill_in('Restrict to branch', with: 'verySecret')
click_button('Save')
- expect(page).to have_content('Asana activated.')
+ expect(page).to have_content(_('Asana activated.'))
end
end
diff --git a/spec/features/projects/services/user_activates_assembla_spec.rb b/spec/features/projects/services/user_activates_assembla_spec.rb
index 9c3884a7c74..23032e0de6d 100644
--- a/spec/features/projects/services/user_activates_assembla_spec.rb
+++ b/spec/features/projects/services/user_activates_assembla_spec.rb
@@ -18,6 +18,6 @@ describe 'User activates Assembla' do
fill_in('Token', with: 'verySecret')
click_button('Save')
- expect(page).to have_content('Assembla activated.')
+ expect(page).to have_content(_('Assembla activated.'))
end
end
diff --git a/spec/features/projects/services/user_activates_atlassian_bamboo_ci_spec.rb b/spec/features/projects/services/user_activates_atlassian_bamboo_ci_spec.rb
index 19573565265..d7b932597ab 100644
--- a/spec/features/projects/services/user_activates_atlassian_bamboo_ci_spec.rb
+++ b/spec/features/projects/services/user_activates_atlassian_bamboo_ci_spec.rb
@@ -21,7 +21,7 @@ describe 'User activates Atlassian Bamboo CI' do
fill_in('Password', with: 'verySecret')
click_button('Save')
- expect(page).to have_content('Atlassian Bamboo CI activated.')
+ expect(page).to have_content(_('Atlassian Bamboo CI activated.'))
# Password field should not be filled in.
click_link('Atlassian Bamboo CI')
diff --git a/spec/features/projects/services/user_activates_emails_on_push_spec.rb b/spec/features/projects/services/user_activates_emails_on_push_spec.rb
index cc55f7b2060..de4cb99bc52 100644
--- a/spec/features/projects/services/user_activates_emails_on_push_spec.rb
+++ b/spec/features/projects/services/user_activates_emails_on_push_spec.rb
@@ -18,6 +18,6 @@ describe 'User activates Emails on push' do
fill_in('Recipients', with: 'qa@company.name')
click_button('Save')
- expect(page).to have_content('Emails on push activated.')
+ expect(page).to have_content(_('Emails on push activated.'))
end
end
diff --git a/spec/features/projects/services/user_activates_flowdock_spec.rb b/spec/features/projects/services/user_activates_flowdock_spec.rb
index f981b7e9da9..9ad4dbfb4f3 100644
--- a/spec/features/projects/services/user_activates_flowdock_spec.rb
+++ b/spec/features/projects/services/user_activates_flowdock_spec.rb
@@ -18,6 +18,6 @@ describe 'User activates Flowdock' do
fill_in('Token', with: 'verySecret')
click_button('Save')
- expect(page).to have_content('Flowdock activated.')
+ expect(page).to have_content(_('Flowdock activated.'))
end
end
diff --git a/spec/features/projects/services/user_activates_hipchat_spec.rb b/spec/features/projects/services/user_activates_hipchat_spec.rb
index 2f5313c91f9..c9481316940 100644
--- a/spec/features/projects/services/user_activates_hipchat_spec.rb
+++ b/spec/features/projects/services/user_activates_hipchat_spec.rb
@@ -20,7 +20,7 @@ describe 'User activates HipChat' do
fill_in('Token', with: 'verySecret')
click_button('Save')
- expect(page).to have_content('HipChat activated.')
+ expect(page).to have_content(_('HipChat activated.'))
end
end
@@ -32,7 +32,7 @@ describe 'User activates HipChat' do
fill_in('Server', with: 'https://chat.example.com')
click_button('Save')
- expect(page).to have_content('HipChat activated.')
+ expect(page).to have_content(_('HipChat activated.'))
end
end
end
diff --git a/spec/features/projects/services/user_activates_irker_spec.rb b/spec/features/projects/services/user_activates_irker_spec.rb
index 4c8e321b411..0dd75deed0c 100644
--- a/spec/features/projects/services/user_activates_irker_spec.rb
+++ b/spec/features/projects/services/user_activates_irker_spec.rb
@@ -19,6 +19,6 @@ describe 'User activates Irker (IRC gateway)' do
fill_in('Recipients', with: 'irc://chat.freenode.net/#commits')
click_button('Save')
- expect(page).to have_content('Irker (IRC gateway) activated.')
+ expect(page).to have_content(_('Irker (IRC gateway) activated.'))
end
end
diff --git a/spec/features/projects/services/user_activates_issue_tracker_spec.rb b/spec/features/projects/services/user_activates_issue_tracker_spec.rb
index 7cd5b12802b..6fe1c640e58 100644
--- a/spec/features/projects/services/user_activates_issue_tracker_spec.rb
+++ b/spec/features/projects/services/user_activates_issue_tracker_spec.rb
@@ -54,7 +54,7 @@ describe 'User activates issue tracker', :js do
click_button('Test settings and save changes')
wait_for_requests
- expect(find('.flash-container-page')).to have_content 'Test failed.'
+ expect(find('.flash-container-page')).to have_content _('Test failed.')
expect(find('.flash-container-page')).to have_content 'Save anyway'
find('.flash-alert .flash-action').click
diff --git a/spec/features/projects/services/user_activates_jetbrains_teamcity_ci_spec.rb b/spec/features/projects/services/user_activates_jetbrains_teamcity_ci_spec.rb
index 28d83a8b961..1c40f6f7e0e 100644
--- a/spec/features/projects/services/user_activates_jetbrains_teamcity_ci_spec.rb
+++ b/spec/features/projects/services/user_activates_jetbrains_teamcity_ci_spec.rb
@@ -21,6 +21,6 @@ describe 'User activates JetBrains TeamCity CI' do
fill_in('Password', with: 'verySecret')
click_button('Save')
- expect(page).to have_content('JetBrains TeamCity CI activated.')
+ expect(page).to have_content(_('JetBrains TeamCity CI activated.'))
end
end
diff --git a/spec/features/projects/services/user_activates_jira_spec.rb b/spec/features/projects/services/user_activates_jira_spec.rb
index 08e1855d034..8b5a85ccf24 100644
--- a/spec/features/projects/services/user_activates_jira_spec.rb
+++ b/spec/features/projects/services/user_activates_jira_spec.rb
@@ -36,7 +36,7 @@ describe 'User activates Jira', :js do
end
it 'activates the JIRA service' do
- expect(page).to have_content('JIRA activated.')
+ expect(page).to have_content(_('JIRA activated.'))
expect(current_path).to eq(project_settings_integrations_path(project))
end
@@ -56,7 +56,7 @@ describe 'User activates Jira', :js do
click_button('Test settings and save changes')
page.within('.service-settings') do
- expect(page).to have_content('This field is required.')
+ expect(page).to have_content(_('This field is required.'))
end
end
@@ -75,7 +75,7 @@ describe 'User activates Jira', :js do
find('.flash-alert .flash-action').click
wait_for_requests
- expect(page).to have_content('JIRA activated.')
+ expect(page).to have_content(_('JIRA activated.'))
expect(current_path).to eq(project_settings_integrations_path(project))
end
end
@@ -89,7 +89,7 @@ describe 'User activates Jira', :js do
end
it 'saves but does not activate the JIRA service' do
- expect(page).to have_content('JIRA settings saved, but not activated.')
+ expect(page).to have_content(_('JIRA settings saved, but not activated.'))
expect(current_path).to eq(project_settings_integrations_path(project))
end
diff --git a/spec/features/projects/services/user_activates_mattermost_slash_command_spec.rb b/spec/features/projects/services/user_activates_mattermost_slash_command_spec.rb
index 70f3a812ee9..d1d450f2a22 100644
--- a/spec/features/projects/services/user_activates_mattermost_slash_command_spec.rb
+++ b/spec/features/projects/services/user_activates_mattermost_slash_command_spec.rb
@@ -31,7 +31,7 @@ describe 'Set up Mattermost slash commands', :js do
click_on 'Save changes'
expect(current_path).to eq(project_settings_integrations_path(project))
- expect(page).to have_content('Mattermost slash commands settings saved, but not activated.')
+ expect(page).to have_content(_('Mattermost slash commands settings saved, but not activated.'))
end
it 'redirects to the integrations page after activating' do
@@ -42,7 +42,7 @@ describe 'Set up Mattermost slash commands', :js do
click_on 'Save changes'
expect(current_path).to eq(project_settings_integrations_path(project))
- expect(page).to have_content('Mattermost slash commands activated.')
+ expect(page).to have_content(_('Mattermost slash commands activated.'))
end
it 'shows the add to mattermost button' do
@@ -64,7 +64,7 @@ describe 'Set up Mattermost slash commands', :js do
click_link 'Add to Mattermost'
expect(page).to have_content('The team where the slash commands will be used in')
- expect(page).to have_content('This is the only available team that you are a member of.')
+ expect(page).to have_content(_('This is the only available team that you are a member of.'))
end
it 'shows a disabled prefilled select if user is a member of 1 team' do
@@ -94,7 +94,7 @@ describe 'Set up Mattermost slash commands', :js do
click_link 'Add to Mattermost'
expect(page).to have_content('Select the team where the slash commands will be used in')
- expect(page).to have_content('The list shows all available teams that you are a member of.')
+ expect(page).to have_content(_('The list shows all available teams that you are a member of.'))
end
it 'shows a select with team options user is a member of multiple teams' do
diff --git a/spec/features/projects/services/user_activates_packagist_spec.rb b/spec/features/projects/services/user_activates_packagist_spec.rb
index 756e9b33c07..11032b24767 100644
--- a/spec/features/projects/services/user_activates_packagist_spec.rb
+++ b/spec/features/projects/services/user_activates_packagist_spec.rb
@@ -19,6 +19,6 @@ describe 'User activates Packagist' do
fill_in('Token', with: 'verySecret')
click_button('Save')
- expect(page).to have_content('Packagist activated.')
+ expect(page).to have_content(_('Packagist activated.'))
end
end
diff --git a/spec/features/projects/services/user_activates_pivotaltracker_spec.rb b/spec/features/projects/services/user_activates_pivotaltracker_spec.rb
index 1d6b19e0b0c..bf2c95ed60b 100644
--- a/spec/features/projects/services/user_activates_pivotaltracker_spec.rb
+++ b/spec/features/projects/services/user_activates_pivotaltracker_spec.rb
@@ -18,6 +18,6 @@ describe 'User activates PivotalTracker' do
fill_in('Token', with: 'verySecret')
click_button('Save')
- expect(page).to have_content('PivotalTracker activated.')
+ expect(page).to have_content(_('PivotalTracker activated.'))
end
end
diff --git a/spec/features/projects/services/user_activates_prometheus_spec.rb b/spec/features/projects/services/user_activates_prometheus_spec.rb
index 61361c8a2e3..b7a18613247 100644
--- a/spec/features/projects/services/user_activates_prometheus_spec.rb
+++ b/spec/features/projects/services/user_activates_prometheus_spec.rb
@@ -18,6 +18,6 @@ describe 'User activates Prometheus' do
fill_in('API URL', with: 'http://prometheus.example.com')
click_button('Save changes')
- expect(page).to have_content('Prometheus activated.')
+ expect(page).to have_content(_('Prometheus activated.'))
end
end
diff --git a/spec/features/projects/services/user_activates_pushover_spec.rb b/spec/features/projects/services/user_activates_pushover_spec.rb
index 24612ee1457..a54f7b43402 100644
--- a/spec/features/projects/services/user_activates_pushover_spec.rb
+++ b/spec/features/projects/services/user_activates_pushover_spec.rb
@@ -22,6 +22,6 @@ describe 'User activates Pushover' do
select('Bike', from: 'Sound')
click_button('Save')
- expect(page).to have_content('Pushover activated.')
+ expect(page).to have_content(_('Pushover activated.'))
end
end
diff --git a/spec/features/projects/services/user_activates_slack_notifications_spec.rb b/spec/features/projects/services/user_activates_slack_notifications_spec.rb
index 24b5d5259db..af8895ed82a 100644
--- a/spec/features/projects/services/user_activates_slack_notifications_spec.rb
+++ b/spec/features/projects/services/user_activates_slack_notifications_spec.rb
@@ -22,7 +22,7 @@ describe 'User activates Slack notifications' do
fill_in('Webhook', with: 'https://hooks.slack.com/services/SVRWFV0VVAR97N/B02R25XN3/ZBqu7xMupaEEICInN685')
click_button('Save')
- expect(page).to have_content('Slack notifications activated.')
+ expect(page).to have_content(_('Slack notifications activated.'))
end
end
diff --git a/spec/features/projects/services/user_activates_slack_slash_command_spec.rb b/spec/features/projects/services/user_activates_slack_slash_command_spec.rb
index 08cfddf7993..1ed41298c1a 100644
--- a/spec/features/projects/services/user_activates_slack_slash_command_spec.rb
+++ b/spec/features/projects/services/user_activates_slack_slash_command_spec.rb
@@ -26,7 +26,7 @@ describe 'Slack slash commands' do
click_on 'Save'
expect(current_path).to eq(project_settings_integrations_path(project))
- expect(page).to have_content('Slack slash commands settings saved, but not activated.')
+ expect(page).to have_content(_('Slack slash commands settings saved, but not activated.'))
end
it 'redirects to the integrations page after activating' do
@@ -35,7 +35,7 @@ describe 'Slack slash commands' do
click_on 'Save'
expect(current_path).to eq(project_settings_integrations_path(project))
- expect(page).to have_content('Slack slash commands activated.')
+ expect(page).to have_content(_('Slack slash commands activated.'))
end
it 'shows the correct trigger url' do