mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-13 17:04:18 +00:00
first commit of a million rails snippets, conditions missing, command implementation missing...
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: deftg
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: def test_should_get_action
|
||||
## condition: "meta.rails.functional_test"
|
||||
# --
|
||||
def test_should_get_${1:action}
|
||||
${2:@${3:model} = ${4:$3s}(:${5:fixture_name})
|
||||
}get :${1}${6:, :id => @$3.to_param}
|
||||
assert_response :success
|
||||
$0
|
||||
end
|
||||
Reference in New Issue
Block a user