--- a/specky/snippets/rspec.snippets Sat Feb 20 21:44:40 2010 -0800
+++ b/specky/snippets/rspec.snippets Sat Feb 20 21:46:21 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}