config/sublime/Packages/Rails/def-post-request.sublime-snippet
2012-08-01 21:04:05 -07:00

11 lines
363 B
XML

<snippet>
<content><![CDATA[def test_should_post_${1:action}
${3:@$2 = ${4:$2s}(:${5:fixture_name})
}post :${1}${6:, :id => @$2.to_param}, :${2:model} => { $0 }
assert_response :redirect
end]]></content>
<tabTrigger>deftp</tabTrigger>
<scope>meta.rails.functional_test</scope>
<description>def test_should_post_action</description>
</snippet>