re-namespacing a touch

This commit is contained in:
Dan Buch
2012-04-03 23:02:32 -04:00
parent e316c95b80
commit 24e619e703
130 changed files with 0 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
require 'spec_helper'
describe "/maps/edit.html.erb" do
include MapsHelper
before(:each) do
assigns[:map] = @map = stub_model(Map,
:new_record? => false,
:name => "value for name"
)
end
it "renders the edit map form" do
render
response.should have_tag("form[action=#{map_path(@map)}][method=post]") do
with_tag('input#map_name[name=?]', "map[name]")
end
end
end