spec/spec_helper.rb in adhearsion-asr-1.1.1 vs spec/spec_helper.rb in adhearsion-asr-1.2.0
- old
+ new
@@ -8,6 +8,13 @@
config.mock_with :rspec
config.filter_run :focus => true
config.run_all_when_everything_filtered = true
config.backtrace_clean_patterns = [/rspec/]
+
+ config.before do
+ @current_datetime = DateTime.now
+ DateTime.stub now: @current_datetime
+
+ Punchblock.stub new_request_id: 'foo'
+ end
end