Skip to content

Commit af70b14

Browse files
committed
Merge pull request #63 from SDEagle/allow_with_return
use and_return as default on allow stubs instead of with args
2 parents 3609da4 + 427de4e commit af70b14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Snippets/allow-to-receive.sublime-snippet

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<snippet>
2-
<content><![CDATA[allow(${1:collaborator}).to receive(:${2:message})${3:.with(${4:args})}$0]]></content>
2+
<content><![CDATA[allow(${1:collaborator}).to receive(:${2:message})${3:.with(${4:args})}${5:.and_return(${6:result})}$0]]></content>
33
<tabTrigger>allrec</tabTrigger>
44
<scope>source.ruby.rspec</scope>
55
<description>allow(object).to receive(message)</description>

0 commit comments

Comments
 (0)