Browse files

Add `expect(obj).to have_received(…)` snippet

  • Loading branch information...
1 parent 72f2c21 commit 33f4e3b8769b73837da7f95c7535afcb4e4f5784 @ashmoran ashmoran committed Nov 26, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 Snippets/expect-to-have_received.sublime-snippet
View
6 Snippets/expect-to-have_received.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[expect(${1:collaborator}).to have_received(:${2:message})${3:.with(${4:args})}$0]]></content>
+ <tabTrigger>exprec</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>expect(object).to have_received(message)</description>
+</snippet>

0 comments on commit 33f4e3b

Please sign in to comment.