spec/spec_helper.rb in validates_host-0.3.1 vs spec/spec_helper.rb in validates_host-1.0.0
- old
+ new
@@ -1,11 +1,10 @@
-require "rubygems"
-require "rspec"
-require "active_record"
+require 'rspec'
+require 'active_model'
+require 'coveralls'
+require 'shoulda-matchers'
-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:")
-
-CreateServers.migrate(:up)
-CreateSubnets.migrate(:up)
+require 'validates_host'
+require 'fake_app/server'
+require 'fake_app/subnet'
\ No newline at end of file