Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

better snippet for define matcher

  • Loading branch information...
commit 22fbfb6f703889e75a105b09b30286cc25648518 1 parent efe49e8
@dchelimsky authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 Snippets/Matcher (DSL).tmSnippet
View
6 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>
Please sign in to comment.
Something went wrong with that request. Please try again.