box-o-sand/map-mash/spec/views/maps/index.html.erb_spec.rb
Dan Buch d834b81003 Add 'map-mash/' from commit '7f16409d1257e7471fef35c18bcdf32856b908e3'
git-subtree-dir: map-mash
git-subtree-mainline: eacc351b17
git-subtree-split: 7f16409d12
2013-01-09 23:59:47 -05:00

22 lines
382 B
Ruby

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