Sha256: 2c4c23a14023304d1c610e6d1750e5d870d1841e0fde94ee31218e4e9ff6c19a
Contents?: true
Size: 719 Bytes
Versions: 22
Compression:
Stored size: 719 Bytes
Contents
require 'test_helper' class Formtastic::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 formtastic) 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 formtastic) assert_file "app/views/product_lines/_form.html.erb" end end
Version data entries
22 entries across 22 versions & 1 rubygems