Sha256: 9c56b44a14ad25c05e47ac0b0fda770a45a20718384d64f407544c7c85290669
Contents?: true
Size: 640 Bytes
Versions: 7
Compression:
Stored size: 640 Bytes
Contents
require 'spec_helper' <% output_attributes = attributes.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%> describe "<%= ns_table_name %>/new" do before(:each) do assign(:<%= ns_file_name %>, build_stubbed(:<%= class_name.underscore %>)) end it "renders new <%= ns_file_name %> form" do render assert_select "form", action: <%= index_helper %>_path, method: "post" do <% for attribute in output_attributes -%> assert_select "<%= attribute.input_type -%>#<%= ns_file_name %>_<%= attribute.name %>", name: "<%= ns_file_name %>[<%= attribute.name %>]" <% end -%> end end end
Version data entries
7 entries across 7 versions & 1 rubygems