spec/spec_helper.rb in validation_sync-0.0.4 vs spec/spec_helper.rb in validation_sync-0.0.5

- old
+ new

@@ -2,10 +2,12 @@ require File.expand_path("../dummy/config/environment.rb", __FILE__) require 'rspec/rails' require 'rspec/autorun' require 'factory_girl_rails' +require 'capybara-webkit' +require 'coffee_script' Rails.backtrace_cleaner.remove_silencers! # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } @@ -21,6 +23,10 @@ # Make the standard Capybara driver play nice with the Webkit (JS) driver config.use_transactional_fixtures = false # Allow for short-hand Factory Girl syntax config.include FactoryGirl::Syntax::Methods -end +end + +# Pick up on factories in the dummy app +FactoryGirl.definition_file_paths = %W(spec/dummy/spec/factories) +FactoryGirl.reload \ No newline at end of file