Skip to content

Instantly share code, notes, and snippets.

@flyingzumwalt
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flyingzumwalt/97c8d2ed64ad0c983676 to your computer and use it in GitHub Desktop.
Save flyingzumwalt/97c8d2ed64ad0c983676 to your computer and use it in GitHub Desktop.
describe ... do
...
it "should link back to collections" do
stub_request = stub("request", referer: "http://.../collections")
allow(view).to receive(:request).and_return(stub_request)
render
expect(page).to have_link(...)
end
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment