Method: Webhookdb::SpecHelpers.included
- Defined in:
- lib/webhookdb/spec_helpers.rb
.included(context) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/webhookdb/spec_helpers.rb', line 18 def self.included(context) context.before(:all) do Webhookdb::Customer.password_hash_cost = 1 end context.before(:each) do allow(Kernel).to receive(:sleep) do |n| raise "Never sleep with > 0 during tests" if n.positive? end end super end |