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.
box-o-sand/rails/gerbil/spec/views/people/show.html.erb_spec.rb

22 lines
631 B

require 'spec_helper'
describe "people/show.html.erb" do
before(:each) do
@person = assign(:person, stub_model(Person,
:name => "Name",
:age => 1,
:zipcode => "Zipcode"
))
end
it "renders attributes in <p>" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
rendered.should match(/Name/)
# Run the generator again with the --webrat flag if you want to use webrat matchers
rendered.should match(/1/)
# Run the generator again with the --webrat flag if you want to use webrat matchers
rendered.should match(/Zipcode/)
end
end