Sha256: 948483a9e824e813c6f7131f884400141632557f3cdb82feaa52758c5aed0fea

Contents?: true

Size: 521 Bytes

Versions: 1

Compression:

Stored size: 521 Bytes

Contents

require 'spec_helper'

describe Lita::Handlers::OnewheelWordJumble, lita_handler: true do

  before(:each) do
    # registry.configure do |config|
    #   config.handlers.onewheel_word_jumble.api_key = 'xyz'
    # end
  end

  it { is_expected.to route_command('words abcde 3') }
  it { is_expected.to route_command('words abcde') }

  it 'solves yer jumble' do
    send_command 'words aelb'
    expect(replies.last).to_not be(nil)
    expect(replies.count).to be(1)
    expect(replies.last).to include('able')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lita-onewheel-word-jumble-0.0.0 spec/lita/handlers/onewheel_word_jumble_spec.rb