5 describe "goons/edit.html.erb" do
7 @goon = assign(:goon, stub_model(Goon,
8 :title => "佐藤さんから誕生日プレゼントを貰った",
11 :description => "リラっくまのぬいぐるみを貰った"
15 it "renders the edit goon form" do
18 # Run the generator again with the --webrat flag if you want to use webrat matchers
19 assert_select "form", :action => goon_path(@goon), :method => "post" do
20 assert_select "input#goon_title", :name => "goon[title]"
21 assert_select "input#goon_who", :name => "goon[who]"
22 assert_select "input#goon_where", :name => "goon[where]"
23 assert_select "textarea#goon_description", :name => "goon[description]"