Permalink
Browse files

fix deploy path for Vundle

  • Loading branch information...
1 parent 15cb6bf commit 94b5bc6f20958675e4a5f8be6f8b21bab37c59a2 @chloerei committed Sep 21, 2011
View
@@ -5,7 +5,7 @@ namespace :snippets_dir do
task :find do
vim_dir = File.join(ENV['VIMFILES'] || ENV['HOME'] || ENV['USERPROFILE'], RUBY_PLATFORM =~ /mswin|msys|mingw32/ ? "vimfiles" : ".vim")
pathogen_dir = File.join(vim_dir, "bundle")
- @snippets_dir = File.directory?(pathogen_dir) ? File.join(pathogen_dir, "snipmate", "snippets") : File.join(vim_dir, "snippets")
+ @snippets_dir = File.directory?(pathogen_dir) ? File.join(pathogen_dir, "snipmate.vim", "snippets") : File.join(vim_dir, "snippets")
end
desc "Purge the contents of the vim snippets directory"
View
@@ -1,2 +1,2 @@
--form_for @${1:model} do |f|
+= form_for @${1:model} do |f|
${2}
View
@@ -1 +1 @@
-=f.check_box :${1:attribute}
+= f.check_box :${1:attribute}
@@ -1 +1 @@
-Factory(:${1}, ${2})${3}
+Factory :${1:model}
@@ -1,4 +1,4 @@
-Factory.define(:${1:model}) do |${2:f}|
+Factory.define :${1:model} do |${2:f}|
${3}
end
${4}
View
@@ -1 +1 @@
-assert_redirected_to ${1::action => "${2:index}"}
+assert_redirected_to ${1:path}
View
@@ -1,3 +1,3 @@
-assert_difference "${1:Model}.${2:count}", $1 do
+assert_difference "${1:Model}.${2:count}" do
${3}
end
View
@@ -0,0 +1,3 @@
+test "${1:case_name}" do
+ ${2}
+end

0 comments on commit 94b5bc6

Please sign in to comment.