diff options
Diffstat (limited to 'spec/finders/concerns/finder_methods_spec.rb')
-rw-r--r-- | spec/finders/concerns/finder_methods_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/finders/concerns/finder_methods_spec.rb b/spec/finders/concerns/finder_methods_spec.rb index 195449d70c3..98d6ca8da3b 100644 --- a/spec/finders/concerns/finder_methods_spec.rb +++ b/spec/finders/concerns/finder_methods_spec.rb @@ -30,6 +30,7 @@ RSpec.describe FinderMethods do authorized_project.add_developer(user) end + # rubocop:disable Rails/FindById describe '#find_by!' do it 'returns the project if the user has access' do expect(finder.find_by!(id: authorized_project.id)).to eq(authorized_project) @@ -53,6 +54,7 @@ RSpec.describe FinderMethods do finder.find_by!(id: authorized_project.id) end end + # rubocop:enable Rails/FindById describe '#find' do it 'returns the project if the user has access' do |