diff options
Diffstat (limited to 'spec/lib/banzai/filter/user_reference_filter_spec.rb')
-rw-r--r-- | spec/lib/banzai/filter/user_reference_filter_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/lib/banzai/filter/user_reference_filter_spec.rb b/spec/lib/banzai/filter/user_reference_filter_spec.rb index d8de3e5cc11..b8baccf6658 100644 --- a/spec/lib/banzai/filter/user_reference_filter_spec.rb +++ b/spec/lib/banzai/filter/user_reference_filter_spec.rb @@ -40,10 +40,10 @@ RSpec.describe Banzai::Filter::UserReferenceFilter do end context 'mentioning @all' do - it_behaves_like 'a reference containing an element node' - let(:reference) { User.reference_prefix + 'all' } + it_behaves_like 'a reference containing an element node' + before do project.add_developer(project.creator) end @@ -78,10 +78,10 @@ RSpec.describe Banzai::Filter::UserReferenceFilter do end context 'mentioning a group' do - it_behaves_like 'a reference containing an element node' - - let(:group) { create(:group) } let(:reference) { group.to_reference } + let(:group) { create(:group) } + + it_behaves_like 'a reference containing an element node' it 'links to the Group' do doc = reference_filter("Hey #{reference}") @@ -98,10 +98,10 @@ RSpec.describe Banzai::Filter::UserReferenceFilter do end context 'mentioning a nested group' do - it_behaves_like 'a reference containing an element node' - - let(:group) { create(:group, :nested) } let(:reference) { group.to_reference } + let(:group) { create(:group, :nested) } + + it_behaves_like 'a reference containing an element node' it 'links to the nested group' do doc = reference_filter("Hey #{reference}") |