spec/spec_helper.rb in validates_cnpj-1.1.3 vs spec/spec_helper.rb in validates_cnpj-2.0.0

- old
+ new

@@ -1,11 +1,8 @@ -require "rubygems" -require "rspec" -require "active_record" +require 'rspec' +require 'active_model' +require 'coveralls' -Dir.glob(File.dirname(__FILE__) + "/../lib/**/*.rb").each { |file| require file } -Dir.glob(File.dirname(__FILE__) + "/fake_app/**/*.rb").each { |file| require file } +Coveralls.wear! -ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") - -CreateCompanies.migrate(:up) -CreateAdmins.migrate(:up) +Dir.glob(File.dirname(__FILE__) + '/../lib/**/*.rb').each { |file| require file } +Dir.glob(File.dirname(__FILE__) + '/fake_app/**/*.rb').each { |file| require file } \ No newline at end of file