Sha256: a0ac973b616b6376a73af46b8f9d231cb118b4655620f23745b97e42c9126898
Contents?: true
Size: 570 Bytes
Versions: 3
Compression:
Stored size: 570 Bytes
Contents
require 'test_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 setup :prepare_destination setup :copy_routes 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
Version data entries
3 entries across 2 versions & 2 rubygems