spec/lita/handlers/stocks_spec.rb in lita-stocks-0.0.2 vs spec/lita/handlers/stocks_spec.rb in lita-stocks-0.0.3

- old
+ new

@@ -8,6 +8,11 @@ send_command "stock GOOG" expect(replies.last).to include("Google Inc") expect(replies.last).to include("GOOG") expect(replies.last).to include("NASDAQ") end + + it "checks an invalid stock" do + send_command "stock GOOGFAKE" + expect(replies.last).to eq("Sorry, but there was a problem retrieving stock information.") + end end