spec/spec_helper.rb in validators-2.3.0 vs spec/spec_helper.rb in validators-2.4.0
- old
+ new
@@ -1,11 +1,14 @@
-require "bundler/setup"
+require "codeclimate-test-reporter"
+CodeClimate::TestReporter.start
+require "bundler/setup"
require "active_record"
require "validators"
require "active_support/all"
Time.zone = "America/Sao_Paulo"
+TLDs = ActiveModel::Validations::UrlValidator.tlds.sample(100)
Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f}
ActiveRecord::Base.establish_connection :adapter => "sqlite3", :database => ":memory:"
load "schema.rb"