diff options
Diffstat (limited to 'spec/support/shared_examples/models/note_access_check_shared_examples.rb')
-rw-r--r-- | spec/support/shared_examples/models/note_access_check_shared_examples.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/shared_examples/models/note_access_check_shared_examples.rb b/spec/support/shared_examples/models/note_access_check_shared_examples.rb index 44edafe9091..0c9992b832f 100644 --- a/spec/support/shared_examples/models/note_access_check_shared_examples.rb +++ b/spec/support/shared_examples/models/note_access_check_shared_examples.rb @@ -3,7 +3,7 @@ RSpec.shared_examples 'users with note access' do it 'returns true' do users.each do |user| - expect(note.system_note_with_references_visible_for?(user)).to be_truthy + expect(note.system_note_visible_for?(user)).to be_truthy expect(note.readable_by?(user)).to be_truthy end end @@ -12,7 +12,7 @@ end RSpec.shared_examples 'users without note access' do it 'returns false' do users.each do |user| - expect(note.system_note_with_references_visible_for?(user)).to be_falsy + expect(note.system_note_visible_for?(user)).to be_falsy expect(note.readable_by?(user)).to be_falsy end end |