Skip to content

Instantly share code, notes, and snippets.

@quidproquo
Last active August 29, 2015 14:07
Show Gist options
  • Save quidproquo/9b99df645d13abb15655 to your computer and use it in GitHub Desktop.
Save quidproquo/9b99df645d13abb15655 to your computer and use it in GitHub Desktop.
describe 'with valid ticker' do
let(:ticker) { 'AAPL' }
let!(:instrument) { create(:instrument, ticker: ticker) }
["url_1", "url_2"].each do |url|
context "with url #{url}" do
let(:referer) { url }
it "should redirect to ticker page" do
get :yahoo
should redirect_to instrument_path(instrument)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment