Last active
August 29, 2015 14:12
-
-
Save guilleiguaran/56a3879da5f6b6f467ce to your computer and use it in GitHub Desktop.
MiniTest::Spec + ActiveRecord 4.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'active_record' | |
require 'active_record/fixtures' | |
class MiniTest::Spec | |
ActiveRecord::Base.establish_connection | |
ActiveRecord::Migration.check_pending! | |
include ActiveRecord::TestFixtures | |
alias :method_name :name if defined? :name | |
self.use_instantiated_fixtures = false | |
self.use_transactional_fixtures = true | |
self.fixture_path = File.join(File.dirname(__FILE__), 'fixtures') | |
fixtures :all | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment