Sha256: 2256da9e3eb41d96f6b8cb1ca45bf91bb1adac8ad046af5af18e34eddf360724

Contents?: true

Size: 389 Bytes

Versions: 1

Compression:

Stored size: 389 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.1 spec/lita/handlers/vader_spec.rb