diff options
Diffstat (limited to 'spec/models/integrations/chat_message')
-rw-r--r-- | spec/models/integrations/chat_message/issue_message_spec.rb | 17 | ||||
-rw-r--r-- | spec/models/integrations/chat_message/wiki_page_message_spec.rb | 26 |
2 files changed, 23 insertions, 20 deletions
diff --git a/spec/models/integrations/chat_message/issue_message_spec.rb b/spec/models/integrations/chat_message/issue_message_spec.rb index 4a86322cdaf..ff9f30efdca 100644 --- a/spec/models/integrations/chat_message/issue_message_spec.rb +++ b/spec/models/integrations/chat_message/issue_message_spec.rb @@ -47,14 +47,15 @@ RSpec.describe Integrations::ChatMessage::IssueMessage do it 'returns a message regarding opening of issues' do expect(subject.pretext).to eq( '[<http://somewhere.com|project_name>] Issue <http://url.com|#100 Issue title> opened by Test User (test.user)') - expect(subject.attachments).to eq([ - { - title: "#100 Issue title", - title_link: "http://url.com", - text: "issue description", - color: color - } - ]) + expect(subject.attachments).to eq( + [ + { + title: "#100 Issue title", + title_link: "http://url.com", + text: "issue description", + color: color + } + ]) end end diff --git a/spec/models/integrations/chat_message/wiki_page_message_spec.rb b/spec/models/integrations/chat_message/wiki_page_message_spec.rb index 16659311c52..dae8d293354 100644 --- a/spec/models/integrations/chat_message/wiki_page_message_spec.rb +++ b/spec/models/integrations/chat_message/wiki_page_message_spec.rb @@ -71,12 +71,13 @@ RSpec.describe Integrations::ChatMessage::WikiPageMessage do end it 'returns the commit message for a new wiki page' do - expect(subject.attachments).to eq([ - { - text: commit_message, - color: color - } - ]) + expect(subject.attachments).to eq( + [ + { + text: commit_message, + color: color + } + ]) end end @@ -86,12 +87,13 @@ RSpec.describe Integrations::ChatMessage::WikiPageMessage do end it 'returns the commit message for an updated wiki page' do - expect(subject.attachments).to eq([ - { - text: commit_message, - color: color - } - ]) + expect(subject.attachments).to eq( + [ + { + text: commit_message, + color: color + } + ]) end end end |