summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-11-04 16:24:35 +0100
committerAzul <azul@leap.se>2012-11-04 16:24:35 +0100
commit5c6395d8b1a8c7cf540dae9fdd37f3e68554215c (patch)
tree727cd51d00addfb26ebbfc9a75d890513b709930 /test
parent2264623a445bf5c64404ef302f63e4d99ecbd97f (diff)
fixing tests, including support files from all engines
Diffstat (limited to 'test')
-rw-r--r--test/dummy/app/controllers/application_controller.rb5
-rw-r--r--test/test_helper.rb3
2 files changed, 8 insertions, 0 deletions
diff --git a/test/dummy/app/controllers/application_controller.rb b/test/dummy/app/controllers/application_controller.rb
new file mode 100644
index 0000000..be7aa1f
--- /dev/null
+++ b/test/dummy/app/controllers/application_controller.rb
@@ -0,0 +1,5 @@
+class ApplicationController < ActionController::Base
+ protect_from_forgery
+
+ ActiveSupport.run_load_hooks(:application_controller, self)
+end
diff --git a/test/test_helper.rb b/test/test_helper.rb
index f7d48ec..50d5159 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -4,6 +4,9 @@ require 'rails/test_help'
require 'mocha'
+# Load support files from all engines
+Dir["#{File.dirname(__FILE__)}/../*/test/support/**/*.rb"].each { |f| require f }
+
class ActiveSupport::TestCase
# Add more helper methods to be used by all tests here...
end