main
1require "spec_helper"
2
3describe StockService do
4 let(:sut) { StockService.new }
5
6 context "when given a known stock symbol" do
7 it "fetches the most recent price for a given stock" do
8 result = sut.fetch("GOOG")
9 result.symbol.should == "\"GOOG\""
10 result.price.should be > 0
11 result.name.should == "\"Google Inc.\""
12 end
13 end
14end