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/new.html.erb_spec.rb

21 lines
395 B

require 'spec_helper'
describe "/maps/new.html.erb" do
include MapsHelper
before(:each) do
assigns[:map] = stub_model(Map,
:new_record? => true,
:name => "value for name"
)
end
it "renders new map form" do
render
response.should have_tag("form[action=?][method=post]", maps_path) do
with_tag("input#map_name[name=?]", "map[name]")
end
end
end