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 authored and cbeer committed Jan 21, 2016
1 parent 1d428fc commit 35734e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/helpers/url_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<span class="previous">&laquo; Previous</span>' }
end
end

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

0 comments on commit 35734e5

Please sign in to comment.