Sha256: 2e22c92aae4495b1f053a67b6c4acb7d6bb3a90972995935e7e0005c1e8b7034

Contents?: true

Size: 793 Bytes

Versions: 14

Compression:

Stored size: 793 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

require 'chatterbot/skeleton'

describe "Chatterbot::Skeleton" do
  before(:each) do
    @bot = Chatterbot::Bot.new
    @bot.config = {
      :consumer_key => "consumer_key",
      :consumer_secret => "consumer_secret",
      :secret => "secret",
      :token => "token"
    }
    allow(@bot).to receive(:botname).and_return("Skelley_The_Skeleton")

    @output = Chatterbot::Skeleton.generate(@bot)
  end

  it "should have name" do
    expect(@output).to include("Skelley_The_Skeleton")
  end 

  it "should have auth info" do
    expect(@output).to include("'consumer_key'")
    expect(@output).to include("'consumer_secret'")
    expect(@output).to include("'secret'")
    expect(@output).to include("'token'")
  end 
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
chatterbot-2.2.0 spec/skeleton_spec.rb
chatterbot-2.1.0 spec/skeleton_spec.rb
chatterbot-2.0.5 spec/skeleton_spec.rb
chatterbot-2.0.4 spec/skeleton_spec.rb
chatterbot-2.0.3 spec/skeleton_spec.rb
chatterbot-2.0.2 spec/skeleton_spec.rb
chatterbot-1.0.2 spec/skeleton_spec.rb
chatterbot-2.0.0.pre spec/skeleton_spec.rb
chatterbot-1.0.1 spec/skeleton_spec.rb
chatterbot-1.0.0 spec/skeleton_spec.rb
chatterbot-0.9.3 spec/skeleton_spec.rb
chatterbot-0.9.2 spec/skeleton_spec.rb
chatterbot-0.9.1 spec/skeleton_spec.rb
chatterbot-0.9.0 spec/skeleton_spec.rb