Sha256: 84b24c301d0e8cba3f4912300075e1a6aa947f27ac184512918ce26820d8379b
Contents?: true
Size: 534 Bytes
Versions: 1
Compression:
Stored size: 534 Bytes
Contents
require 'test_helper' class Erb::Generators::ControllerGeneratorTest < Rails::Generators::TestCase destination File.join(Rails.root) tests Rails::Generators::ControllerGenerator arguments %w(Account foo bar --template-engine erb) setup :prepare_destination setup :copy_routes test "should invoke template engine" do run_generator assert_file "app/views/account/foo.html.erb", %r(app/views/account/foo\.html\.erb) assert_file "app/views/account/bar.html.erb", %r(app/views/account/bar\.html\.erb) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-generators-0.0.1 | test/lib/generators/erb/controller_generator_test.rb |