Sha256: 30c318c5401edb9555521d2f4f6cfbd81c84aa8fb9e33845db004c2bca217420

Contents?: true

Size: 695 Bytes

Versions: 1

Compression:

Stored size: 695 Bytes

Contents

require 'spec_helper'

describe Lita::Handlers::OnewheelOdotTripcheckWebHack, lita_handler: true do
  before(:each) do
  end

  it { is_expected.to route_command('tripcheck blue') }
  it { is_expected.to route_command('tripcheck') }

  it 'will respond to tripcheck' do
    send_command 'tripcheck govy'
    expect(replies.last).to include('https://tripcheck.com/RoadCams/cams/US26%20at%20Govn%20Camp%20Maint_pid1899.JPG')
  end

  it 'will list tripchecks' do
    send_command 'tripcheck'
    expect(replies.last).to eq('Cameras available include: Hood River, 26 at 35, 26 at Snow Bunny, 26 at Govy, 26 at Govy Loop Rd, 26 at Frog Lake, 26 at Blue Box Pass, Sandy Blvd in Hollywood')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lita-onewheel-odot-tripcheck-web-hack-0.1.0 spec/lita/handlers/onewheel_odot_tripcheck_web_hack_spec.rb