Skip to content

Commit

Permalink
Expect a hash not kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne authored and cbeer committed Nov 8, 2022
1 parent 6600e0a commit 955d4bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/helpers/catalog_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def mock_response args
end

it "calls thumbnail presenter with provided values" do
expect(thumbnail_presenter).to receive(:thumbnail_tag).with({}, suppress_link: true)
expect(thumbnail_presenter).to receive(:thumbnail_tag).with({}, { suppress_link: true })
helper.render_thumbnail_tag document, {}, suppress_link: true
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/models/blacklight/suggest_search_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

describe '#suggestions' do
it 'delegates to the repository' do
expect(repository).to receive(:suggestions).with(q: 'test').and_return(response)
expect(repository).to receive(:suggestions).with({ q: 'test' }).and_return(response)
expect(suggest_search.suggestions).to eq response
end
end
Expand Down

0 comments on commit 955d4bc

Please sign in to comment.