Sha256: 60cfe1f215e056bf26e69e8c288bbed16b74a6da341bcf12f641cc116f89aa2c

Contents?: true

Size: 522 Bytes

Versions: 2

Compression:

Stored size: 522 Bytes

Contents

require "spec_helper"

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

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

  it 'routes questions with fancy quotes' 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

2 entries across 2 versions & 1 rubygems

Version Path
lita-vader-0.2.0 spec/lita/handlers/vader_spec.rb
lita-vader-0.1.2 spec/lita/handlers/vader_spec.rb