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.12.3 sample_apps/sample_app_mongoid/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.12.3 sample_apps/sample_app_activerecord/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.12.2 sample_apps/sample_app_mongoid/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.12.2 sample_apps/sample_app_activerecord/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.12.1 sample_apps/sample_app_activerecord/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.12.1 sample_apps/sample_app_mongoid/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.12.0 sample_apps/sample_app_activerecord/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.12.0 sample_apps/sample_app_mongoid/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.11.1 sample_apps/sample_app_activerecord/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.11.1 sample_apps/sample_app_mongoid/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.11.0 sample_apps/sample_app_activerecord/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.11.0 sample_apps/sample_app_mongoid/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.10.0 sample_apps/sample_app_mongoid/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.10.0 sample_apps/sample_app_activerecord/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.9.0 sample_apps/sample_app_activerecord/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.9.0 sample_apps/sample_app_mongoid/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.8.3 sample_apps/sample_app_mongoid/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.8.3 sample_apps/sample_app_activerecord/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.8.2 sample_apps/sample_app_activerecord/spec/commands/whoami_spec.rb
slack-ruby-bot-server-0.8.2 sample_apps/sample_app_mongoid/spec/commands/whoami_spec.rb