Sha256: 7ac60447c4cc487be795623a083e11ec17787d7fcb4ebc9d403cf2de2cadf371
Contents?: true
Size: 357 Bytes
Versions: 15
Compression:
Stored size: 357 Bytes
Contents
shared_examples 'a slack ruby bot' do context 'not configured' do before do @slack_api_token = ENV.delete('SLACK_API_TOKEN') end after do ENV['SLACK_API_TOKEN'] = @slack_api_token end it 'requires SLACK_API_TOKEN' do expect { subject }.to raise_error RuntimeError, "Missing ENV['SLACK_API_TOKEN']." end end end
Version data entries
15 entries across 15 versions & 1 rubygems