Permalink
Browse files

some rspec snippets

  • Loading branch information...
1 parent 0c1a700 commit 1b2245710b1bb493251ea2ab20f3f50384f344d0 @BrunoGrasselli committed Sep 4, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 snippets/ruby-rspec.snippets
View
16 snippets/ruby-rspec.snippets
@@ -19,3 +19,19 @@ snippet it
it "${1}" do
${2}
end
+
+snippet bef
+ before do
+ ${1}
+ end
+
+snippet aft
+ after do
+ ${1}
+ end
+
+snippet fgc
+ FactoryGirl.create(:${1})
+
+snippet fgb
+ FactoryGirl.build(:${1})

0 comments on commit 1b22457

Please sign in to comment.