Sha256: afeb2e297a8fa7de112180702ce0d30ab4e8e8fa17325a5e5e8aa81e9fa14d8d

Contents?: true

Size: 399 Bytes

Versions: 1

Compression:

Stored size: 399 Bytes

Contents

#encoding: utf-8
require_relative "../../spec_helper"

describe Lita::Handlers::Chengyujielong, lita_handler: true do
  describe ':routing' do
    it '返回成语提示' do
      send_message 'Lita 随便'
      expect(replies.last).to eq('请输入成语')
    end

    it '返回成语' do
      send_message 'Lita 当仁不让'
      expect(replies.last).to match(/^让.{3}$/)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lita-chengyujielong-0.1.1 spec/lita/handlers/chengyujielong_spec.rb