Skip to content

Commit

Permalink
fixed 2 more snippets with old c-r calls
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Grenfell <martin_grenfell@msn.com>
  • Loading branch information
Reza Jelveh authored and Martin Grenfell committed Feb 24, 2009
1 parent 5fc4c88 commit 948e0ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ruby-rails/defcreate.snippet
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions ruby/tc.snippet
Original file line number Diff line number Diff line change
@@ -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.