Skip to content

Commit

Permalink
change expected "allows" to "expects" as the tests would pass if the …
Browse files Browse the repository at this point in the history
…method call was removed
  • Loading branch information
mejackreed committed Jun 30, 2016
1 parent 8390be8 commit de59262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/helpers/catalog_helper_spec.rb
Expand Up @@ -181,7 +181,7 @@ def render_grouped_response?
let(:document) { double }
it "calls the provided thumbnail method" do
allow(helper).to receive_messages(:blacklight_config => Blacklight::Configuration.new(:index => Blacklight::OpenStructWithHashAccess.new(:thumbnail_method => :xyz) ))
allow(helper).to receive_messages(:xyz => "some-thumbnail")
expect(helper).to receive_messages(:xyz => "some-thumbnail")

allow(helper).to receive(:link_to_document).with(document, "some-thumbnail", {})
helper.render_thumbnail_tag document
Expand All @@ -193,7 +193,7 @@ def render_grouped_response?
allow(document).to receive(:has?).with(:xyz).and_return(true)
allow(document).to receive(:first).with(:xyz).and_return("http://example.com/some.jpg")

allow(helper).to receive(:link_to_document).with(document, image_tag("http://example.com/some.jpg"), {})
expect(helper).to receive(:link_to_document).with(document, image_tag("http://example.com/some.jpg"), {})
helper.render_thumbnail_tag document
end

Expand Down

0 comments on commit de59262

Please sign in to comment.