Sha256: 71619b72bbe6ba72f78f5d7169a5174748045919b76086ac58bf96e2c27d170c
Contents?: true
Size: 624 Bytes
Versions: 17
Compression:
Stored size: 624 Bytes
Contents
require 'test_helper' require 'lib/generators/slim/testing_helper' class Slim::Generators::ControllerGeneratorTest < Rails::Generators::TestCase destination File.join(Rails.root) tests Rails::Generators::ControllerGenerator arguments %w(Account foo bar --template-engine slim) setup :prepare_destination setup :copy_routes test "should invoke template engine" do run_generator assert_file File.join("app", "views", "account", "foo.html.slim"), %r(app/views/account/foo\.html\.slim) assert_file File.join("app", "views", "account", "bar.html.slim"), %r(app/views/account/bar\.html\.slim) end end
Version data entries
17 entries across 17 versions & 1 rubygems