Permalink
Browse files

better snippet for define matcher

  • Loading branch information...
1 parent efe49e8 commit 22fbfb6f703889e75a105b09b30286cc25648518 @dchelimsky committed Sep 20, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 Snippets/Matcher (DSL).tmSnippet
@@ -3,9 +3,9 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>Spec::Matchers.create ${1::look_like} do |meringue|
- match do |substance|
- substance.looks_like?(meringue)
+ <string>Spec::Matchers.define :${1:name} do |${2:expected}|
+ match do |${3:actual}|
+ $3.$1?($2)
end
end
</string>

0 comments on commit 22fbfb6

Please sign in to comment.