Actually mashing maps now, but not handling form post-back or making it pretty

This commit is contained in:
Dan Buch
2012-03-07 09:32:33 -05:00
parent dd73309ed1
commit b1e17869b1
22 changed files with 447 additions and 42 deletions

View File

@@ -1,26 +0,0 @@
require 'spec_helper'
describe "/mashes/new.html.erb" do
include MashesHelper
before(:each) do
assigns[:mash] = stub_model(Mash,
:new_record? => true,
:requester => "value for requester",
:map_a => 1,
:map_b => 1,
:winner => 1
)
end
it "renders new mash form" do
render
response.should have_tag("form[action=?][method=post]", mashes_path) do
with_tag("input#mash_requester[name=?]", "mash[requester]")
with_tag("input#mash_map_a[name=?]", "mash[map_a]")
with_tag("input#mash_map_b[name=?]", "mash[map_b]")
with_tag("input#mash_winner[name=?]", "mash[winner]")
end
end
end