Fix spec failures
This commit is contained in:
parent
9e3153dbf5
commit
f9023adbad
4 changed files with 5 additions and 4 deletions
|
@ -2,7 +2,7 @@ class SlackSlashCommandsService < ChatSlashCommandsService
|
||||||
include TriggersHelper
|
include TriggersHelper
|
||||||
|
|
||||||
def title
|
def title
|
||||||
'Slack Slash Command'
|
'Slack Command'
|
||||||
end
|
end
|
||||||
|
|
||||||
def description
|
def description
|
||||||
|
|
|
@ -17,9 +17,9 @@ feature 'Admin updates settings', feature: true do
|
||||||
expect(page).to have_content "Application settings saved successfully"
|
expect(page).to have_content "Application settings saved successfully"
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario 'Change Slack Service template settings' do
|
scenario 'Change Slack Notifications Service template settings' do
|
||||||
click_link 'Service Templates'
|
click_link 'Service Templates'
|
||||||
click_link 'Slack'
|
click_link 'Slack notifications'
|
||||||
fill_in 'Webhook', with: 'http://localhost'
|
fill_in 'Webhook', with: 'http://localhost'
|
||||||
fill_in 'Username', with: 'test_user'
|
fill_in 'Username', with: 'test_user'
|
||||||
fill_in 'service_push_channel', with: '#test_channel'
|
fill_in 'service_push_channel', with: '#test_channel'
|
||||||
|
|
|
@ -129,6 +129,7 @@ project:
|
||||||
- builds_email_service
|
- builds_email_service
|
||||||
- pipelines_email_service
|
- pipelines_email_service
|
||||||
- mattermost_slash_commands_service
|
- mattermost_slash_commands_service
|
||||||
|
- slack_slash_commands_service
|
||||||
- irker_service
|
- irker_service
|
||||||
- pivotaltracker_service
|
- pivotaltracker_service
|
||||||
- hipchat_service
|
- hipchat_service
|
||||||
|
|
|
@ -20,7 +20,6 @@ describe Project, models: true do
|
||||||
it { is_expected.to have_many(:deploy_keys) }
|
it { is_expected.to have_many(:deploy_keys) }
|
||||||
it { is_expected.to have_many(:hooks).dependent(:destroy) }
|
it { is_expected.to have_many(:hooks).dependent(:destroy) }
|
||||||
it { is_expected.to have_many(:protected_branches).dependent(:destroy) }
|
it { is_expected.to have_many(:protected_branches).dependent(:destroy) }
|
||||||
it { is_expected.to have_many(:chat_services) }
|
|
||||||
it { is_expected.to have_one(:forked_project_link).dependent(:destroy) }
|
it { is_expected.to have_one(:forked_project_link).dependent(:destroy) }
|
||||||
it { is_expected.to have_one(:slack_notification_service).dependent(:destroy) }
|
it { is_expected.to have_one(:slack_notification_service).dependent(:destroy) }
|
||||||
it { is_expected.to have_one(:mattermost_notification_service).dependent(:destroy) }
|
it { is_expected.to have_one(:mattermost_notification_service).dependent(:destroy) }
|
||||||
|
@ -37,6 +36,7 @@ describe Project, models: true do
|
||||||
it { is_expected.to have_one(:hipchat_service).dependent(:destroy) }
|
it { is_expected.to have_one(:hipchat_service).dependent(:destroy) }
|
||||||
it { is_expected.to have_one(:flowdock_service).dependent(:destroy) }
|
it { is_expected.to have_one(:flowdock_service).dependent(:destroy) }
|
||||||
it { is_expected.to have_one(:assembla_service).dependent(:destroy) }
|
it { is_expected.to have_one(:assembla_service).dependent(:destroy) }
|
||||||
|
it { is_expected.to have_one(:slack_slash_commands_service).dependent(:destroy) }
|
||||||
it { is_expected.to have_one(:mattermost_slash_commands_service).dependent(:destroy) }
|
it { is_expected.to have_one(:mattermost_slash_commands_service).dependent(:destroy) }
|
||||||
it { is_expected.to have_one(:gemnasium_service).dependent(:destroy) }
|
it { is_expected.to have_one(:gemnasium_service).dependent(:destroy) }
|
||||||
it { is_expected.to have_one(:buildkite_service).dependent(:destroy) }
|
it { is_expected.to have_one(:buildkite_service).dependent(:destroy) }
|
||||||
|
|
Loading…
Reference in a new issue