Sha256: fcd99713e899e1ffa01dceaa0755c7aa99de1c94fcfdb648e997321e95d60615
Contents?: true
Size: 518 Bytes
Versions: 2
Compression:
Stored size: 518 Bytes
Contents
require "spec_helper" describe Lita::Handlers::Boardgamegeek, lita_handler: true do it { is_expected.to route_command("bgg me agricola").to(:search) } it { is_expected.to route_command("bgg agricola").to(:search) } describe '#search' do before(:each) do allow(subject).to receive(:game_id).and_return(1) end it "replies with the search term" do send_command("bgg me agricola") expect(replies.first).to eq("agricola: http://www.boardgamegeek.com/boardgame/1") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lita-boardgamegeek-0.1.1 | spec/lita/handlers/boardgamegeek_spec.rb |
lita-boardgamegeek-0.1.0 | spec/lita/handlers/boardgamegeek_spec.rb |