diff --git a/spec/helpers/url_helper_spec.rb b/spec/helpers/url_helper_spec.rb index 97239f3894..b4804b2160 100644 --- a/spec/helpers/url_helper_spec.rb +++ b/spec/helpers/url_helper_spec.rb @@ -129,6 +129,13 @@ end end + describe "link_to_previous_document" do + context "when the argument is nil" do + subject { helper.link_to_previous_document(nil) } + it { is_expected.to eq '« Previous' } + end + end + describe "link_to_query" do it "should build a link tag to catalog using query string (no other params)" do query = "brilliant"