spec/spec_helper.rb in jc-validates_timeliness-3.1.0 vs spec/spec_helper.rb in jc-validates_timeliness-3.1.1
- old
+ new
@@ -1,8 +1,15 @@
require 'rspec'
require 'rspec/collection_matchers'
+# Coveralls
+require "coveralls"
+
+Coveralls.wear! do
+ add_filter 'spec'
+end
+
require 'active_model'
require 'active_model/validations'
require 'active_record'
require 'action_view'
require 'timecop'
@@ -55,9 +62,11 @@
end
class PersonWithShim < Person
include TestModelShim
end
+
+I18n.enforce_available_locales = false
ActiveRecord::Base.default_timezone = :utc
ActiveRecord::Base.time_zone_aware_attributes = true
ActiveRecord::Base.establish_connection({:adapter => 'sqlite3', :database => ':memory:'})
ActiveRecord::Migration.verbose = false