Last active
August 29, 2015 14:07
-
-
Save quidproquo/9b99df645d13abb15655 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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