Sha256: 233780d0673e3c717ae735406a4b41953f7a8006ebe3c134e6c9c496b74d6c36

Contents?: true

Size: 961 Bytes

Versions: 52

Compression:

Stored size: 961 Bytes

Contents

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//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
    "expected #{@actual.inspect} to $2 #{@$3.inspect}, but it didn't"
  end

  def negative_failure_message
    "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>Custom Matcher</string>
	<key>scope</key>
	<string>source.ruby.rspec</string>
	<key>tabTrigger</key>
	<string>mat</string>
	<key>uuid</key>
	<string>55BF6C99-B4C4-4772-B7DC-0A18407E429C</string>
</dict>
</plist>

Version data entries

52 entries across 44 versions & 3 rubygems

Version Path
redcar-bundles-0.3 Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet
redcar-bundles-0.2-java Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet
redcar-bundles-0.1-java Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet
redcar-dev-0.12.1dev-java plugins/textmate/vendor/redcar-bundles/Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet
redcar-dev-0.12.0dev-java plugins/textmate/vendor/redcar-bundles/Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet
redcar-0.11 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet
redcar-0.11.0dev plugins/textmate/vendor/redcar-bundles/Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet
redcar-0.10 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet
redcar-0.9.2 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet
redcar-0.9.1 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet
redcar-0.9.0 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet
redcar-0.8.1 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet
redcar-0.8 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet
redcar-0.7 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet
redcar-0.6.1 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet
redcar-0.6 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet
redcar-0.6.1dev plugins/textmate/vendor/redcar-bundles/Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet
redcar-0.5.1 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet
redcar-0.5 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet
redcar-0.5.6dev plugins/textmate/vendor/redcar-bundles/Bundles/Ruby RSpec.tmbundle/Snippets/Custom_Matcher.tmSnippet