Skip to content

Commit

Permalink
Test link_to_previous_document
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jan 19, 2016
1 parent b5f1fa6 commit 5393c6e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/helpers/url_helper_spec.rb
Expand Up @@ -139,6 +139,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 '<span class="previous">&laquo; Previous</span>' }
end
end

describe "link_to_query" do
it "builds a link tag to catalog using query string (no other params)" do
query = "brilliant"
Expand Down

0 comments on commit 5393c6e

Please sign in to comment.