test/lib/generators/haml/controller_generator_test.rb in haml-rails-0.8.2 vs test/lib/generators/haml/controller_generator_test.rb in haml-rails-0.9.0
- old
+ new
@@ -1,17 +1,18 @@
require 'test_helper'
require 'lib/generators/haml/testing_helper'
class Haml::Generators::ControllerGeneratorTest < Rails::Generators::TestCase
- destination File.join(Rails.root)
+ destination Rails.root
tests Rails::Generators::ControllerGenerator
- arguments %w(Account foo bar --template-engine haml)
setup :prepare_destination
setup :copy_routes
- test "should invoke template engine" do
- run_generator
- assert_file "app/views/account/foo.html.haml", %r(app/views/account/foo\.html\.haml)
- assert_file "app/views/account/bar.html.haml", %r(app/views/account/bar\.html\.haml)
- end
+ arguments %w(Account foo bar --template-engine haml)
+
+ test "should invoke haml engine" do
+ run_generator
+ assert_file "app/views/account/foo.html.haml"
+ assert_file "app/views/account/bar.html.haml"
+ end
end