test/lib/generators/haml/controller_generator_test.rb in haml-rails-2.0.1 vs test/lib/generators/haml/controller_generator_test.rb in haml-rails-2.1.0
- old
+ new
@@ -1,7 +1,8 @@
require 'test_helper'
-require 'lib/generators/haml/testing_helper'
+require 'rails/generators/rails/controller/controller_generator'
+require 'generators/haml/controller/controller_generator'
class Haml::Generators::ControllerGeneratorTest < Rails::Generators::TestCase
destination Rails.root
tests Rails::Generators::ControllerGenerator
@@ -9,10 +10,10 @@
setup :copy_routes
arguments %w(Account foo bar --template-engine haml)
test "should invoke haml engine" do
- run_generator
+ run_generator
assert_file "app/views/account/foo.html.haml"
assert_file "app/views/account/bar.html.haml"
- end
+ end
end