Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: b6f62fb426
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (35 sloc) 0.972 kB
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>class ${1:ReverseTo}
def initialize($3)
@$3 = $3
end
def matches?(actual)
@actual = actual
# Satisfy expectation here. Return false or raise an error if it's not met.
${0:@actual.reverse.should == @$3}
true
end
def failure_message_for_should
"expected #{@actual.inspect} to $2 #{@$3.inspect}, but it didn't"
end
def failure_message_for_should_not
"expected #{@actual.inspect} not to $2 #{@$3.inspect}, but it did"
end
end
def ${2:reverse_to}(${3:expected})
$1.new($3)
end</string>
<key>name</key>
<string>Matcher (Custom)</string>
<key>scope</key>
<string>source.ruby.rspec</string>
<key>tabTrigger</key>
<string>matc</string>
<key>uuid</key>
<string>55BF6C99-B4C4-4772-B7DC-0A18407E429C</string>
</dict>
</plist>
Jump to Line
Something went wrong with that request. Please try again.