templates/tap/generator/generators/task/test.erb in tap-gen-0.3.1 vs templates/tap/generator/generators/task/test.erb in tap-gen-0.7.0
- old
+ new
@@ -1,6 +1,6 @@
-require File.join(File.dirname(__FILE__), '<%= '../' * const.nesting_depth %>tap_test_helper.rb')
-require '<%= const.path %>'
+require File.expand_path('<%= '../' * const.nesting_depth %>../test_helper', __FILE__)
+require '<%= const.relative_path %>'
class <%= const.name %>Test < Test::Unit::TestCase
acts_as_tap_test
def test_<%= const.basename %>
\ No newline at end of file