Sha256: ad8d8b6a581860330ad3b9bc12d5a186f2795f48bcc06af677412ed6b3f1e57d
Contents?: true
Size: 809 Bytes
Versions: 20
Compression:
Stored size: 809 Bytes
Contents
require 'spec_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
20 entries across 20 versions & 1 rubygems