Sha256: 36f773eb5783ca537bcffdf42369e92a18bcdc3cab9b70963a41654ae6b47a04
Contents?: true
Size: 721 Bytes
Versions: 22
Compression:
Stored size: 721 Bytes
Contents
require 'test_helper' class SimpleForm::Generators::FormBuilderGeneratorTest < Rails::Generators::TestCase destination File.join(Rails.root) tests Rails::Generators::ScaffoldGenerator setup :prepare_destination setup :copy_routes test "should invoke form builder and output haml form" do run_generator %w(product_line title:string price:integer --template-engine haml --form-builder simple_form) assert_file "app/views/product_lines/_form.html.haml" end test "should invoke form builder and output erubis form" do run_generator %w(product_line title:string price:integer --template-engine erubis --form-builder simple_form) assert_file "app/views/product_lines/_form.html.erb" end end
Version data entries
22 entries across 22 versions & 1 rubygems