specky/snippets/rspec.snippets
branchvim-stuff
changeset 9 0d8306685c5c
parent 5 3346aa8d5364
child 12 a9f1ce3766d1
--- a/specky/snippets/rspec.snippets	Mon Apr 20 05:06:53 2009 +0000
+++ b/specky/snippets/rspec.snippets	Mon Jun 01 14:33:54 2009 +0000
@@ -134,6 +134,12 @@
 	${1:target}.should ${2:be_${3:predicate}} ${4}
 snippet shnbp
 	${1:target}.should_not ${2:be_${3:predicate}} ${4}
+snippet exre
+	expect { ${1} }.to raise_error( ${2:ErrorClass}, /${3:message match}/i )
+	${4}
+snippet exnre
+	expect { ${1} }.to_not raise_error( ${2:ErrorClass} )
+	${3}
 snippet shre
 	lambda { ${1} }.should raise_error( ${2:ErrorClass}, /${3:message match}/i )
 	${4}