X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/a12d4f62752f546f57421244e370e79965706ffb..f7aee769411a893c1059c529a220c0d25c72974f:/vendor/plugins/engines/generators/engine/templates/test/test_helper.erb diff --git a/vendor/plugins/engines/generators/engine/templates/test/test_helper.erb b/vendor/plugins/engines/generators/engine/templates/test/test_helper.erb new file mode 100644 index 0000000..cf357be --- /dev/null +++ b/vendor/plugins/engines/generators/engine/templates/test/test_helper.erb @@ -0,0 +1,17 @@ +require File.expand_path(File.dirname(__FILE__) + '/../../../../test/test_helper') # the default rails helper + +# ensure that the Engines testing enhancements are loaded. +require File.join(Engines.config(:root), "engines", "lib", "engines", "testing_extensions") + +# Ensure that the code mixing and view loading from the application is disabled +Engines.disable_app_views_loading = true +Engines.disable_app_code_mixing = true + +# force these config values +module <%= engine_class_name %> +# config :some_option, "some_value" +end + +# set up the fixtures location +Test::Unit::TestCase.fixture_path = File.dirname(__FILE__) + "/fixtures/" +$LOAD_PATH.unshift(Test::Unit::TestCase.fixture_path) \ No newline at end of file