Skip to content

Instantly share code, notes, and snippets.

@flyingzumwalt
Last active August 29, 2015 14:02
Show Gist options
  • 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