Sha256: 6a6b3712e37acc5f6661325bd1b74c1b3e1a008e9536d1c329599b5941c2f542
Contents?: true
Size: 597 Bytes
Versions: 1
Compression:
Stored size: 597 Bytes
Contents
require 'spec_helper' describe "other_items/edit" do before(:each) do @other_item = assign(:other_item, stub_model(OtherItem, :title => "MyString", :sequence => 1 )) end it "renders the edit 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_item_path(@other_item), "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/edit.html.erb_spec.rb |