diff options
author | Jarka Kadlecova <jarka@gitlab.com> | 2017-01-20 13:28:40 +0300 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-01-25 12:10:05 +0300 |
commit | 0c350b79395d6712c7c4fee649cdbd77aa4052cc (patch) | |
tree | 2899a67fbe65c29b84c35ab417dbec96913095c4 /spec/models/concerns/mentionable_spec.rb | |
parent | bf708e55c2e6035b64861a1cda8bfe3d3b4a2105 (diff) |
address comments
Diffstat (limited to 'spec/models/concerns/mentionable_spec.rb')
-rw-r--r-- | spec/models/concerns/mentionable_spec.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/spec/models/concerns/mentionable_spec.rb b/spec/models/concerns/mentionable_spec.rb index 63eb7473c97..b73028f0bc0 100644 --- a/spec/models/concerns/mentionable_spec.rb +++ b/spec/models/concerns/mentionable_spec.rb @@ -35,17 +35,14 @@ describe Issue, "Mentionable" do subject { issue.mentioned_users } - it { is_expected.to include(user) } - it { is_expected.not_to include(user2) } + it { expect(subject).to contain_exactly(user) } context 'when a note on personal snippet' do let!(:note) { create(:note_on_personal_snippet, note: "#{user.to_reference} mentioned #{user3.to_reference}") } subject { note.mentioned_users } - it { is_expected.to include(user) } - it { is_expected.to include(user3) } - it { is_expected.not_to include(user2) } + it { expect(subject).to contain_exactly(user, user3) } end end |