Sha256: b95e4d517754eee8aa0cb7297e2599a2c43036a65322775cd76e1015924d286b
Contents?: true
Size: 1014 Bytes
Versions: 1
Compression:
Stored size: 1014 Bytes
Contents
require 'spec_helper' describe "selections/new" do before(:each) do assign(:selection, stub_model(Selection, :name => "MyString", :parent_id => 1, :system_code => "MyString", :position => 1, :is_default => false, :is_system => false ).as_new_record) end it "renders new selection form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", :action => selections_path, :method => "post" do assert_select "input#selection_name", :name => "selection[name]" assert_select "input#selection_parent_id", :name => "selection[parent_id]" assert_select "input#selection_system_code", :name => "selection[system_code]" assert_select "input#selection_position", :name => "selection[position]" assert_select "input#selection_is_default", :name => "selection[is_default]" assert_select "input#selection_is_system", :name => "selection[is_system]" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
selections-0.0.1 | spec/views/selections/selections/new.html.erb_spec.rb |