fix rubocop offenses
This commit is contained in:
parent
1fdf2e4d4b
commit
24edbbb89c
|
@ -845,11 +845,11 @@ describe Search do
|
||||||
|
|
||||||
context 'pagination' do
|
context 'pagination' do
|
||||||
let(:number_of_results) { 2 }
|
let(:number_of_results) { 2 }
|
||||||
let!(:post1) { Fabricate(:post, raw: 'hello hello hello hello hello')}
|
let!(:post1) { Fabricate(:post, raw: 'hello hello hello hello hello') }
|
||||||
let!(:post2) { Fabricate(:post, raw: 'hello hello hello hello')}
|
let!(:post2) { Fabricate(:post, raw: 'hello hello hello hello') }
|
||||||
let!(:post3) { Fabricate(:post, raw: 'hello hello hello')}
|
let!(:post3) { Fabricate(:post, raw: 'hello hello hello') }
|
||||||
let!(:post4) { Fabricate(:post, raw: 'hello hello')}
|
let!(:post4) { Fabricate(:post, raw: 'hello hello') }
|
||||||
let!(:post5) { Fabricate(:post, raw: 'hello')}
|
let!(:post5) { Fabricate(:post, raw: 'hello') }
|
||||||
before do
|
before do
|
||||||
Search.stubs(:per_filter).returns(number_of_results)
|
Search.stubs(:per_filter).returns(number_of_results)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue