Sha256: a568c7521d879b768fd8f160e36c9932eedcbcbefcbc14eecd13f0045c170dd6
Contents?: true
Size: 579 Bytes
Versions: 1
Compression:
Stored size: 579 Bytes
Contents
require 'spec_helper' describe "other_items/new" do before(:each) do assign(:other_item, stub_model(OtherItem, :title => "MyString", :sequence => 1 ).as_new_record) end it "renders new other_item form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form[action=?][method=?]", other_items_path, "post" do assert_select "input#other_item_title[name=?]", "other_item[title]" assert_select "input#other_item_sequence[name=?]", "other_item[sequence]" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_sortable-0.0.5 | spec/dummy/spec/views/other_items/new.html.erb_spec.rb |