specky/snippets/rspec.snippets
branchvim-stuff
changeset 9 0d8306685c5c
parent 5 3346aa8d5364
child 12 a9f1ce3766d1
equal deleted inserted replaced
8:2e76f5b2a40f 9:0d8306685c5c
   132 	${4}
   132 	${4}
   133 snippet shbp
   133 snippet shbp
   134 	${1:target}.should ${2:be_${3:predicate}} ${4}
   134 	${1:target}.should ${2:be_${3:predicate}} ${4}
   135 snippet shnbp
   135 snippet shnbp
   136 	${1:target}.should_not ${2:be_${3:predicate}} ${4}
   136 	${1:target}.should_not ${2:be_${3:predicate}} ${4}
       
   137 snippet exre
       
   138 	expect { ${1} }.to raise_error( ${2:ErrorClass}, /${3:message match}/i )
       
   139 	${4}
       
   140 snippet exnre
       
   141 	expect { ${1} }.to_not raise_error( ${2:ErrorClass} )
       
   142 	${3}
   137 snippet shre
   143 snippet shre
   138 	lambda { ${1} }.should raise_error( ${2:ErrorClass}, /${3:message match}/i )
   144 	lambda { ${1} }.should raise_error( ${2:ErrorClass}, /${3:message match}/i )
   139 	${4}
   145 	${4}
   140 snippet shnre
   146 snippet shnre
   141 	lambda { ${1} }.should_not raise_error( ${2:ErrorClass} )
   147 	lambda { ${1} }.should_not raise_error( ${2:ErrorClass} )