rails_generators/rtml/templates/lib/tasks/rtml.rake in rtml-2.0.2 vs rails_generators/rtml/templates/lib/tasks/rtml.rake in rtml-2.0.3

- old
+ new

@@ -49,11 +49,11 @@ t.spec_opts = ['--options', opts] end if $root_dir t.ruby_opts << ['-r', File.join(Rtml.root, 'lib/rtml/init')] end - if File.file?(File.join(RAILS_ROOT, "spec/spec_helper")) - t.ruby_opts << ['-r', File.join(RAILS_ROOT, "spec/spec_helper")] + if File.file?(File.join(RAILS_ROOT, "spec/spec_helper.rb")) + t.ruby_opts << ['-r', File.join(RAILS_ROOT, "spec/spec_helper.rb")] end t.spec_files = FileList[File.join(Rtml.root, "spec/**/*_spec.rb")] end else task :test do