Skip to content

Instantly share code, notes, and snippets.

@jmaskell
Created October 3, 2012 20:01
Show Gist options
  • Save jmaskell/3829476 to your computer and use it in GitHub Desktop.
Save jmaskell/3829476 to your computer and use it in GitHub Desktop.
Stockery test
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