Sha256: 601b0f7d7ba2cfed160197add27673f0a149a43ca663201b756ffa7ef93706ce

Contents?: true

Size: 496 Bytes

Versions: 8

Compression:

Stored size: 496 Bytes

Contents

describe SlackRubyBot::App do
  def app
    SlackRubyBot::App.new
  end
  it_behaves_like 'a slack ruby bot'

  describe '.instance' do
    it 'creates an instance of the App subclass' do
      klass = Class.new(SlackRubyBot::App)
      expect(klass.instance.class).to be klass
    end
  end

  describe 'executable' do
    it 'can be required as a dependency' do
      response = system("ruby -e \"Bundler = nil ; require 'slack-ruby-bot'\"")
      expect(response).to be true
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
slack-ruby-bot-0.12.0 spec/slack-ruby-bot/app_spec.rb
slack-ruby-bot-0.11.2 spec/slack-ruby-bot/app_spec.rb
slack-ruby-bot-0.11.1 spec/slack-ruby-bot/app_spec.rb
slack-ruby-bot-0.11.0 spec/slack-ruby-bot/app_spec.rb
slack-ruby-bot-0.10.5 spec/slack-ruby-bot/app_spec.rb
slack-ruby-bot-0.10.4 spec/slack-ruby-bot/app_spec.rb
slack-ruby-bot-0.10.3 spec/slack-ruby-bot/app_spec.rb
slack-ruby-bot-0.10.2 spec/slack-ruby-bot/app_spec.rb