box-o-sand/oldstuff/map-mash/spec/views/maps/show.html.erb_spec.rb

16 lines
292 B
Ruby
Raw Normal View History

2012-04-04 03:02:32 +00:00
require 'spec_helper'
describe "/maps/show.html.erb" do
include MapsHelper
before(:each) do
assigns[:map] = @map = stub_model(Map,
:name => "value for name"
)
end
it "renders attributes in <p>" do
render
response.should have_text(/value\ for\ name/)
end
end