Sha256: 3f80a30fcce4ce9bccf202871824c1cd2072cab3dbe0ed1a82abf8dfdc795105
Contents?: true
Size: 758 Bytes
Versions: 20
Compression:
Stored size: 758 Bytes
Contents
require 'spec_helper' describe "checkout_types/new" do before(:each) do assign(:checkout_type, stub_model(CheckoutType, :name => "MyString", :display_name => "MyText", :note => "MyText", :position => 1 ).as_new_record) end it "renders new checkout_type form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", :action => checkout_types_path, :method => "post" do assert_select "input#checkout_type_name", :name => "checkout_type[name]" assert_select "textarea#checkout_type_display_name", :name => "checkout_type[display_name]" assert_select "textarea#checkout_type_note", :name => "checkout_type[note]" end end end
Version data entries
20 entries across 20 versions & 1 rubygems