def test_create
num_trails = Trail.count
post :create, :trail => {:name => "Hermosa Creek", :description =>
"Lots of altitude, all down", :difficulty => "Medium"}
发布: 2008-6-23 14:33 | 作者: 不详 | 来源: 领测软件测试网编辑整理 | 查看: 13次 | 进入领测软件测试网论坛讨论
def test_create
num_trails = Trail.count
post :create, :trail => {:name => "Hermosa Creek", :description =>
"Lots of altitude, all down", :difficulty => "Medium"}