box-o-sand/RubyFun/rails/gerbil/spec/views/people/show.html.erb_spec.rb
Dan Buch 0a9428093c Add 'RubyFun/' from commit 'b01c6826131196ba58b5288a3182f2526c89c249'
git-subtree-dir: RubyFun
git-subtree-mainline: a04a502787
git-subtree-split: b01c682613
2013-01-09 23:50:14 -05:00

22 lines
631 B
Ruby

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