You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
649 B

require 'spec_helper'
describe "people/edit.html.erb" do
before(:each) do
@person = assign(:person, stub_model(Person,
:name => "MyString",
:age => 1,
:zipcode => "MyString"
))
end
it "renders the edit person form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form", :action => people_path(@person), :method => "post" do
assert_select "input#person_name", :name => "person[name]"
assert_select "input#person_age", :name => "person[age]"
assert_select "input#person_zipcode", :name => "person[zipcode]"
end
end
end