--- a/specky/snippets/rspec.snippets Thu Sep 10 20:50:11 2009 -0700
+++ b/specky/snippets/rspec.snippets Tue Feb 16 11:21:43 2010 -0800
@@ -135,16 +135,16 @@
snippet shnbp
${1:target}.should_not ${2:be_${3:predicate}} ${4}
snippet exre
- expect { ${1} }.to raise_error( ${2:ErrorClass}, /${3:message match}/i )
+ expect { ${1} }.to raise_exception( ${2:ErrorClass}, /${3:message match}/i )
${4}
snippet exnre
- expect { ${1} }.to_not raise_error( ${2:ErrorClass} )
+ expect { ${1} }.to_not raise_exception( ${2:ErrorClass} )
${3}
snippet shre
- lambda { ${1} }.should raise_error( ${2:ErrorClass}, /${3:message match}/i )
+ lambda { ${1} }.should raise_exception( ${2:ErrorClass}, /${3:message match}/i )
${4}
snippet shnre
- lambda { ${1} }.should_not raise_error( ${2:ErrorClass} )
+ lambda { ${1} }.should_not raise_exception( ${2:ErrorClass} )
${3}
snippet shr
${1:mock}.should_receive( :${2:message} )${3}