Re-namespacing a bit to clear out some fairly old stuff from the top level
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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
|
||||
Reference in New Issue
Block a user