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

22 lines
382 B
Ruby
Raw Normal View History

2012-04-04 03:02:32 +00:00
require 'spec_helper'
describe "/maps/index.html.erb" do
include MapsHelper
before(:each) do
assigns[:maps] = [
stub_model(Map,
:name => "value for name"
),
stub_model(Map,
:name => "value for name"
)
]
end
it "renders a list of maps" do
render
response.should have_tag("tr>td", "value for name".to_s, 2)
end
end