Created
October 3, 2012 20:01
-
-
Save jmaskell/3829476 to your computer and use it in GitHub Desktop.
Stockery test
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
require 'rubygems' | |
require 'rspec' | |
require 'stockery' | |
describe Stockery::Quote do | |
before(:each) do | |
stock_quote = Stockery::Quote.new | |
stock_quote.source = Stockery::GOOGLE | |
@stock = stock_quote.get_status("BP") | |
end | |
it "should have the right fields" do | |
@stock.should have_key :market | |
@stock.should have_key :name | |
@stock.should have_key :price | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment