Skip to content

Commit

Permalink
Merge 6fe446c into 2a23401
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Oct 30, 2018
2 parents 2a23401 + 6fe446c commit 51595c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/helpers/blacklight_helper_spec.rb
Expand Up @@ -144,15 +144,18 @@
end

it "is true" do
expect(Deprecation).to receive(:warn)
expect(helper.should_render_index_field?(double, double)).to be true
end

it "is false if the document doesn't have a value for the field" do
expect(Deprecation).to receive(:warn)
allow(helper).to receive_messages(document_has_value?: false)
expect(helper.should_render_index_field?(double, double)).to be false
end

it "is false if the configuration has the field disabled" do
expect(Deprecation).to receive(:warn)
allow(helper).to receive_messages(should_render_field?: false)
expect(helper.should_render_index_field?(double, double)).to be false
end
Expand All @@ -164,15 +167,18 @@
end

it "is true" do
expect(Deprecation).to receive(:warn)
expect(helper.should_render_show_field?(double, double)).to be true
end

it "is false if the document doesn't have a value for the field" do
expect(Deprecation).to receive(:warn)
allow(helper).to receive_messages(document_has_value?: false)
expect(helper.should_render_show_field?(double, double)).to be false
end

it "is false if the configuration has the field disabled" do
expect(Deprecation).to receive(:warn)
allow(helper).to receive_messages(should_render_field?: false)
expect(helper.should_render_show_field?(double, double)).to be false
end
Expand Down

0 comments on commit 51595c4

Please sign in to comment.