Skip to content

Commit

Permalink
fixed some snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmorales committed Jun 17, 2011
1 parent c469c1a commit 2e924c3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion snippets/ruby-rails/ass.snippet
@@ -1 +1 @@
assert_select '<+path+>'<+, :<+text+> => <+'<+inner_html+>'+>+> <+do<++>+>
assigns[:${1}]
4 changes: 1 addition & 3 deletions snippets/ruby-rspec/shc.snippet
@@ -1,3 +1 @@
lambda do
${1}
end.should change(${2:target}, :${3:method}).from(${4:old_value}).to(${5:new_value}).by(${6:change})
lambda{ ${1:action} }.should change{ ${2:value} }
4 changes: 1 addition & 3 deletions snippets/ruby-rspec/shnc.snippet
@@ -1,3 +1 @@
lambda do
${1}
end.should_not change(${2:target}, :${3:method})
lambda{ ${1:action} }.should_not change{ ${2:value} }
1 change: 1 addition & 0 deletions vimrc
Expand Up @@ -55,3 +55,4 @@ cmap w!! w !sudo tee % >/dev/null
autocmd BufNewFile,BufRead *.mobile.erb let b:eruby_subtype = 'html'
autocmd BufNewFile,BufRead *.addin.erb let b:eruby_subtype = 'html'

autocmd User Rails Rnavcommand cache app/cache -glob=**/* -suffix=_cache.rb -default=./lib/cache_observer.rb
Expand Down

0 comments on commit 2e924c3

Please sign in to comment.