Sha256: 16655954af52477f26ddf325a6db764e622eda23ef82903c8e9907ff488da9a7
Contents?: true
Size: 548 Bytes
Versions: 4
Compression:
Stored size: 548 Bytes
Contents
require 'rails_helper' RSpec.describe "<%= ns_table_name %>/edit", <%= type_metatag(:view) %> do <%= model.factory_girl_let_definitions %> before(:each) do @<%= ns_file_name %> = assign(:<%= ns_file_name %>, <%= model.factory_girl_create %>) end it "renders the edit <%= ns_file_name %> form" do render assert_select "form[action=?][method=?]", <%= ns_file_name %>_path(@<%= ns_file_name %>), "post" do <% model.columns_for(:form).each do |attribute| -%> <%= attribute.assert_select_exp %> <% end -%> end end end
Version data entries
4 entries across 4 versions & 1 rubygems