From 5be60f8fe03753c8eca5d7af9972b1ed15490fdd Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Mon, 20 Jul 2015 02:49:24 +0200 Subject: [PATCH] load fixtures before tests --- spec/spec_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4d25d10..1d588a1 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -51,6 +51,10 @@ RSpec.configure do |config| config.include FactoryGirl::Syntax::Methods config.use_transactional_fixtures = true + # load fixtures + config.fixture_path = "#{::Rails.root}/test/fixtures" + config.global_fixtures = :all + config.mock_with :rspec do |mocks| # Prevents you from mocking or stubbing a method that does not exist on # a real object. This is generally recommended, and will default to