lib/generators/extension/templates/test_helper.rb in spree-0.9.4 vs lib/generators/extension/templates/test_helper.rb in spree-0.10.0.beta
- old
+ new
@@ -2,25 +2,13 @@
# Load the environment
unless defined? SPREE_ROOT
ENV["RAILS_ENV"] = "test"
case
when ENV["SPREE_ENV_FILE"]
- require ENV["SPREE_ENV_FILE"]
+ require File.dirname(ENV["SPREE_ENV_FILE"]) + "/boot"
when File.dirname(__FILE__) =~ %r{vendor/spree/vendor/extensions}
- require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../../")}/config/environment"
+ require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../../")}/config/boot"
else
- require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment"
+ require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/boot"
end
end
require "#{SPREE_ROOT}/test/test_helper"
-
-class Test::Unit::TestCase
-
- # Include a helper to make testing Radius tags easier
- test_helper :extension_tags
-
- # Add the fixture directory to the fixture path
- self.fixture_path << File.dirname(__FILE__) + "/fixtures"
-
- # Add more helper methods to be used by all extension tests here...
-
-end
\ No newline at end of file