Sha256: 130330823b3778e15032e439044c7ee7e12358412b1e6c143ab99943eaf44efa

Contents?: true

Size: 475 Bytes

Versions: 4

Compression:

Stored size: 475 Bytes

Contents

require "spec_helper"

describe Lita::Handlers::Xkcd, lita_handler: true do
  it { routes_command("xkcd").to(:xkcd_latest) }
  it { routes_command("xkcd latest").to(:xkcd_latest) }

  it { routes_command("xkcd 123").to(:xkcd_num) }
  it { doesnt_route_command("xkcd 123").to(:xkcd_latest) }

  it { routes_command("xkcd random").to(:xkcd_random) }
  it { doesnt_route_command("xkcd random").to(:xkcd_latest) }

  it { doesnt_route_command("help xkcd").to(:xkcd_latest) }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lita-xkcd-0.0.6 spec/lita/handlers/xkcd_spec.rb
lita-xkcd-0.0.5 spec/lita/handlers/xkcd_spec.rb
lita-xkcd-0.0.4 spec/lita/handlers/xkcd_spec.rb
lita-xkcd-0.0.3 spec/lita/handlers/xkcd_spec.rb