spec/spec_helper.rb in punchblock-2.3.1 vs spec/spec_helper.rb in punchblock-2.4.0
- old
+ new
@@ -3,10 +3,11 @@
require 'punchblock'
require 'countdownlatch'
require 'logger'
require 'celluloid'
require 'coveralls'
+require 'ruby_ami'
Coveralls.wear!
Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f}
Thread.abort_on_exception = true
@@ -25,9 +26,12 @@
end
config.before do
@uuid = SecureRandom.uuid
Punchblock.stub new_request_id: @uuid
+
+ @current_datetime = DateTime.now
+ DateTime.stub now: @current_datetime
end
config.after :each do
if defined?(:Celluloid)
Celluloid.shutdown