Sha256: 4049814418efbfae578bafb3a6cecb82dbcd0a1852712b1cf80537754dd22310
Contents?: true
Size: 584 Bytes
Versions: 36
Compression:
Stored size: 584 Bytes
Contents
require 'test_helper' require 'lib/generators/haml/testing_helper' class Haml::Generators::ControllerGeneratorTest < Rails::Generators::TestCase destination File.join(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 end
Version data entries
36 entries across 36 versions & 7 rubygems