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/map-mash/spec/views/maps/show.html.erb_spec.rb

16 lines
292 B

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