Sha256: 9e1c47c91fde1703306aa522093e450c5b9a2f1bde8dd39b907a27a2baf185b1

Contents?: true

Size: 381 Bytes

Versions: 37

Compression:

Stored size: 381 Bytes

Contents

require 'spec_helper'
require 'commands/whoami'

describe Whoami do
  let(:team) { Fabricate(:team) }
  let(:app) { SlackRubyBotServer::Server.new(team: team) }
  context 'whoami' do
    it 'returns username' do
      expect(message: "#{SlackRubyBot.config.user} whoami", channel: 'channel', user: 'user').to respond_with_slack_message(
        '<@user>'
      )
    end
  end
end

Version data entries

37 entries across 22 versions & 1 rubygems

Version Path
slack-ruby-bot-server-0.8.1 sample_apps/sample_app_mongoid/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.8.1 sample_apps/sample_app_activerecord/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.8.0 sample_apps/sample_app_mongoid/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.8.0 sample_apps/sample_app_activerecord/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.7.0 sample_apps/sample_app_activerecord/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.7.0 sample_apps/sample_app_mongoid/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.6.1 sample_apps/sample_app_activerecord/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.6.1 sample_apps/sample_app_mongoid/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.6.0 sample_apps/sample_app_activerecord/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.6.0 sample_apps/sample_app_mongoid/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.5.0 sample_app/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.4.0 sample_app/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.3.1 sample_app/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.3.0 sample_app/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.2.0 sample_app/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.1.1 sample_app/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.1.0 sample_app/spec/commands/whoami_spec.rb