spec/spec_helper.rb in by_star-3.0.0 vs spec/spec_helper.rb in by_star-4.0.0
- old
+ new
@@ -18,9 +18,13 @@
puts "Running specs in #{Time.zone} timezone..."
# Set Rails time to 2014-01-01 00:00:00
Timecop.travel(Time.zone.local(2014))
+RSpec.configure do |c|
+ c.filter_run_excluding sydney: true unless Time.zone.name == 'Australia/Sydney'
+end
+
def testing_mongoid?
ENV['DB'] == 'mongodb'
end
def testing_active_record?