Permalink
Browse files

fixed 2 more snippets with old c-r calls

Signed-off-by: Martin Grenfell <martin_grenfell@msn.com>
  • Loading branch information...
1 parent 5fc4c88 commit 948e0ee9a344395ba6474d0293c571ab816b424c Reza Jelveh committed with Feb 22, 2009
Showing with 5 additions and 5 deletions.
  1. +1 −1 ruby-rails/defcreate.snippet
  2. +4 −4 ruby/tc.snippet
@@ -3,7 +3,7 @@ def create
respond_to do |wants|
if @$1.save
- flash[:notice] = '\<c-r>=snippet_classname\<cr> was successfully created.'
+ flash[:notice] = '$2 was successfully created.'
wants.html { redirect_to(@$1) }
wants.xml { render :xml => @$1, :status => :created, :location => @$1 }
else
View
@@ -1,9 +1,9 @@
require "test/unit"
-require "<+library_file_name+>"
+require "${1:library_file_name}"
-class Test<+\<c-r>=Snippet_RubyClassNameFromFilename()\<CR>+> < Test::Unit::TestCase
- def test_<+case_name+>
- <++>
+class Test${2:`Snippet_RubyClassNameFromFilename()`} < Test::Unit::TestCase
+ def test_${3:case_name}
+ ${4}
end
end

0 comments on commit 948e0ee

Please sign in to comment.