Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/integrations/chat_message/wiki_page_message_spec.rb')
-rw-r--r--spec/models/integrations/chat_message/wiki_page_message_spec.rb26
1 files changed, 14 insertions, 12 deletions
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