Sha256: a8904e1f62cf504c51c8a395d94c2fd3d0a15e466cbe0caab3981faef0758039
Contents?: true
Size: 810 Bytes
Versions: 8
Compression:
Stored size: 810 Bytes
Contents
require 'rails_helper' describe "use_restrictions/edit" do before(:each) do @use_restriction = assign(:use_restriction, stub_model(UseRestriction, :name => "MyString", :display_name => "MyText", :note => "MyText", :position => 1 )) end it "renders the edit use_restriction form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", :action => use_restrictions_path(@use_restriction), :method => "post" do assert_select "input#use_restriction_name", :name => "use_restriction[name]" assert_select "textarea#use_restriction_display_name", :name => "use_restriction[display_name]" assert_select "textarea#use_restriction_note", :name => "use_restriction[note]" end end end
Version data entries
8 entries across 8 versions & 1 rubygems