Sha256: 40ada115c7b3438455faa49c96fae104a6df071c0d379a9c9d29fa7da925bf9c
Contents?: true
Size: 399 Bytes
Versions: 1
Compression:
Stored size: 399 Bytes
Contents
require "spec_helper" describe Lita::Handlers::Stocks, lita_handler: true do it { routes_command("stock GOOG").to(:stock_info) } it { doesnt_route_command("stock").to(:stock_info) } it "checks default stock" do send_command "stock GOOG" expect(replies.last).to include("Google Inc") expect(replies.last).to include("GOOG") expect(replies.last).to include("NASDAQ") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lita-stocks-0.0.2 | spec/lita/handlers/stocks_spec.rb |