diff options
Diffstat (limited to 'spec/finders/snippets_finder_spec.rb')
-rw-r--r-- | spec/finders/snippets_finder_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/finders/snippets_finder_spec.rb b/spec/finders/snippets_finder_spec.rb index 69e03c4c473..fdcc73f6e92 100644 --- a/spec/finders/snippets_finder_spec.rb +++ b/spec/finders/snippets_finder_spec.rb @@ -114,7 +114,7 @@ describe SnippetsFinder do context 'when author is not valid' do it 'returns quickly' do - finder = described_class.new(admin, author: 1234) + finder = described_class.new(admin, author: non_existing_record_id) expect(finder).not_to receive(:init_collection) expect(Snippet).to receive(:none).and_call_original @@ -208,7 +208,7 @@ describe SnippetsFinder do context 'when project is not valid' do it 'returns quickly' do - finder = described_class.new(admin, project: 1234) + finder = described_class.new(admin, project: non_existing_record_id) expect(finder).not_to receive(:init_collection) expect(Snippet).to receive(:none).and_call_original |