BigW Consortium Gitlab

mentionable_spec.rb 403 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
require 'spec_helper'

describe Issue, "Mentionable" do
  describe :mentioned_users do
    let!(:user) { create(:user, username: 'stranger') }
    let!(:user2) { create(:user, username: 'john') }
    let!(:issue) { create(:issue, description: '@stranger mentioned') }

    subject { issue.mentioned_users }

11 12
    it { is_expected.to include(user) }
    it { is_expected.not_to include(user2) }
13 14
  end
end