Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

some rspec snippets

  • Loading branch information...
commit 1b2245710b1bb493251ea2ab20f3f50384f344d0 1 parent 0c1a700
Bruno Grasselli authored September 04, 2012

Showing 1 changed file with 16 additions and 0 deletions. Show diff stats Hide diff stats

  1. 16  snippets/ruby-rspec.snippets
16  snippets/ruby-rspec.snippets
@@ -19,3 +19,19 @@ snippet it
19 19
 	it "${1}" do
20 20
 	  ${2}
21 21
 	end
  22
+
  23
+snippet bef
  24
+	before do
  25
+	  ${1}
  26
+	end
  27
+
  28
+snippet aft
  29
+	after do
  30
+	  ${1}
  31
+	end
  32
+
  33
+snippet fgc
  34
+	FactoryGirl.create(:${1})
  35
+
  36
+snippet fgb
  37
+	FactoryGirl.build(:${1})

0 notes on commit 1b22457

Please sign in to comment.
Something went wrong with that request. Please try again.