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

22 lines
382 B

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