spec/lita/handlers/howlongtobeat_spec.rb in lita-howlongtobeat-0.2.0 vs spec/lita/handlers/howlongtobeat_spec.rb in lita-howlongtobeat-0.3.0
- old
+ new
@@ -1,9 +1,10 @@
require "spec_helper"
describe Lita::Handlers::Howlongtobeat, lita_handler: true do
it { is_expected.to route_command("howlongtobeat witcher 3").to(:howlongtobeat) }
it { is_expected.to route_command("hltp witcher 3").to(:howlongtobeat) }
+ it { is_expected.to route_command("hltb witcher 3").to(:howlongtobeat) }
describe "#howlongtobeat" do
before :each do
stub_request(:post, described_class::HowlongtobeatSearch::SEARCH_URL).with(body: {"detail"=>"0", "queryString"=>"sdfdfsfdfds", "sortd"=>"Normal Order", "sorthead"=>"popular", "t"=>"games"}).to_return(File.read('spec/fixtures/nothing_found.txt'))
end