Variety of small changes (mostly to properties) plus a few "in the
[selectricity] / vendor / plugins / engines / generators / engine / templates / test / test_helper.erb
1 require File.expand_path(File.dirname(__FILE__) + '/../../../../test/test_helper') # the default rails helper
2
3 # ensure that the Engines testing enhancements are loaded.
4 require File.join(Engines.config(:root), "engines", "lib", "engines", "testing_extensions")
5
6 # Ensure that the code mixing and view loading from the application is disabled
7 Engines.disable_app_views_loading = true
8 Engines.disable_app_code_mixing = true
9
10 # force these config values
11 module <%= engine_class_name %>
12 #  config :some_option, "some_value"
13 end
14
15 # set up the fixtures location
16 Test::Unit::TestCase.fixture_path = File.dirname(__FILE__)  + "/fixtures/"
17 $LOAD_PATH.unshift(Test::Unit::TestCase.fixture_path)

Benjamin Mako Hill || Want to submit a patch?