Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
better snippet for define matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Sep 20, 2009
1 parent efe49e8 commit 22fbfb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Snippets/Matcher (DSL).tmSnippet
Expand Up @@ -3,9 +3,9 @@
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>content</key> <key>content</key>
<string>Spec::Matchers.create ${1::look_like} do |meringue| <string>Spec::Matchers.define :${1:name} do |${2:expected}|
match do |substance| match do |${3:actual}|
substance.looks_like?(meringue) $3.$1?($2)
end end
end end
</string> </string>
Expand Down

0 comments on commit 22fbfb6

Please sign in to comment.