config/environments/test.rb in radiant-0.6.4 vs config/environments/test.rb in radiant-0.6.5
- old
+ new
@@ -5,25 +5,32 @@
# your test database is "scratch space" for the test suite and is wiped
# and recreated between test runs. Don't rely on the data there!
config.cache_classes = true
# ensure test extensions are loaded
-test_extension_dir = File.join(File.expand_path(RADIANT_ROOT), 'test', 'fixtures', 'extensions')
-config.extension_paths << test_extension_dir
-config.extension_paths.uniq!
-if config.extensions && !config.extensions.include?(:all)
- config.extensions.concat(Dir["#{test_extension_dir}/*"].sort.map {|x| File.basename(x).sub(/^\d+_/,'')})
- config.extensions.uniq!
-end
+# test_extension_dir = File.join(File.expand_path(RADIANT_ROOT), 'test', 'fixtures', 'extensions')
+# config.extension_paths.unshift test_extension_dir
+# config.extension_paths.uniq!
+# if !config.extensions.include?(:all)
+# config.extensions.concat(Dir["#{test_extension_dir}/*"].sort.map {|x| File.basename(x).sub(/^\d+_/,'')})
+# config.extensions.uniq!
+# end
# Log error messages when you accidentally call methods on nil.
config.whiny_nils = true
# Show full error reports and disable caching
config.action_controller.consider_all_requests_local = true
config.action_controller.perform_caching = false
ResponseCache.defaults[:perform_caching] = false
+# Disable request forgery protection in test environment
+config.action_controller.allow_forgery_protection = false
+
# Tell ActionMailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
+
+# Make sure Rspec is in the load path
+config.load_paths << "#{RADIANT_ROOT}/vendor/plugins/rspec/lib"
+config.load_paths << "#{RADIANT_ROOT}/vendor/plugins/rspec_on_rails/lib"