spec/slack/events/config_spec.rb in slack-ruby-client-1.1.0 vs spec/slack/events/config_spec.rb in slack-ruby-client-2.0.0
- old
+ new
@@ -12,12 +12,14 @@
end
it 'defaults signing secret to ENV[SLACK_SIGNING_SECRET]' do
expect(Slack::Events.config.signing_secret).to eq 'secret'
end
+
it 'defaults signature expiration to 5 minutes' do
expect(Slack::Events.config.signature_expires_in).to eq 5 * 60
end
+
context 'configured' do
before do
Slack::Events.configure do |config|
config.signing_secret = 'custom'
config.signature_expires_in = 45