Sha256: f604616725be361aca979b14c2a227ceba22ef389c05ca5efc88abbf4cda768e

Contents?: true

Size: 390 Bytes

Versions: 1

Compression:

Stored size: 390 Bytes

Contents

require "spec_helper"

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

  it 'routes questions about fathers' do
    expect(subject).to route_command("who is Luke's father?").to(:father)
  end

  describe 'father' do
    it "explains who a user's father is" do
      send_command("who is Luke's father?")
      expect(replies.last).to eq("@Luke, I am your father!")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lita-vader-0.1.0 spec/lita/handlers/vader_spec.rb