Sha256: e3262aeb5d78a901e15f660c75260e7bb6e6227ab0faed23d6663465ae0854df
Contents?: true
Size: 462 Bytes
Versions: 11
Compression:
Stored size: 462 Bytes
Contents
require 'rails_helper' describe "accepts/edit" do before(:each) do @accept = assign(:accept, stub_model(Accept, :item_id => 1 )) end it "renders the edit accept form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", :action => accepts_path(@accept), :method => "post" do assert_select "input#accept_item_id", :name => "accept[item_id]" end end end
Version data entries
11 entries across 9 versions & 2 rubygems