Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move dev to http://github.com/rspec/rspec-tmbundle

- removed all the code from this branch
- left MOVED note in README
  • Loading branch information...
commit 7d832113c723e4b0fab38d7172ba70ec3d4c08c1 1 parent df85d0c
@dchelimsky authored
Showing with 3 additions and 2,661 deletions.
  1. +0 −30 Commands/Alternate File.tmCommand
  2. +0 −33 Commands/Run Focussed Specification.tmCommand
  3. +0 −32 Commands/Run Last Examples file.tmCommand
  4. +0 −32 Commands/Run Specifications - Normal.tmCommand
  5. +0 −31 Commands/Run Specifications in selected files or directories.tmCommand
  6. +0 −35 Commands/Save spec and remember.tmCommand
  7. +0 −27 Commands/Update RSpec Bundle.tmCommand
  8. +0 −22 License.txt
  9. +0 −19 Preferences/Symbol List: Pending.tmPreferences
  10. +0 −19 Preferences/SymbolList-Behaviour.tmPreferences
  11. +0 −19 Preferences/SymbolList-Example.tmPreferences
  12. +3 −10 README.rdoc
  13. +0 −18 Snippets/Describe.tmSnippet
  14. +0 −18 Snippets/Describe_type.tmSnippet
  15. +0 −18 Snippets/Describe_type_string.tmSnippet
  16. +0 −18 Snippets/It.tmSnippet
  17. +0 −39 Snippets/Matcher (Custom).tmSnippet
  18. +0 −21 Snippets/Matcher (DSL).tmSnippet
  19. +0 −18 Snippets/Require spec_helper.tmSnippet
  20. +0 −16 Snippets/Set Controller for Spec.tmSnippet
  21. +0 −16 Snippets/and_raise.tmSnippet
  22. +0 −16 Snippets/and_return_block.tmSnippet
  23. +0 −16 Snippets/and_return_value.tmSnippet
  24. +0 −16 Snippets/and_throw.tmSnippet
  25. +0 −16 Snippets/and_yield.tmSnippet
  26. +0 −16 Snippets/any_number_of_times.tmSnippet
  27. +0 −16 Snippets/at_least.tmSnippet
  28. +0 −16 Snippets/at_most.tmSnippet
  29. +0 −18 Snippets/configure.tmSnippet
  30. +0 −18 Snippets/context.tmSnippet
  31. +0 −20 Snippets/controller_context.tmSnippet
  32. +0 −18 Snippets/controller_context_RESTful.tmSnippet
  33. +0 −16 Snippets/exactly.tmSnippet
  34. +0 −18 Snippets/it should.tmSnippet
  35. +0 −17 Snippets/mock.tmSnippet
  36. +0 −16 Snippets/mock_model.tmSnippet
  37. +0 −18 Snippets/mock_with.tmSnippet
  38. +0 −16 Snippets/once.tmSnippet
  39. +0 −17 Snippets/response_should_be_success.tmSnippet
  40. +0 −17 Snippets/response_should_not_be_success.tmSnippet
  41. +0 −18 Snippets/setup.tmSnippet
  42. +0 −17 Snippets/should ==.tmSnippet
  43. +0 −17 Snippets/should =~.tmSnippet
  44. +0 −17 Snippets/should eql.tmSnippet
  45. +0 −17 Snippets/should_be.tmSnippet
  46. +0 −17 Snippets/should_be_a_kind_of.tmSnippet
  47. +0 −17 Snippets/should_be_an_instance_of.tmSnippet
  48. +0 −17 Snippets/should_be_close.tmSnippet
  49. +0 −17 Snippets/should_be_redirect.tmSnippet
  50. +0 −17 Snippets/should_equal.tmSnippet
  51. +0 −17 Snippets/should_have.tmSnippet
  52. +0 −17 Snippets/should_have_at_least.tmSnippet
  53. +0 −17 Snippets/should_have_at_most.tmSnippet
  54. +0 −17 Snippets/should_have_records.tmSnippet
  55. +0 −17 Snippets/should_match.tmSnippet
  56. +0 −17 Snippets/should_not ==.tmSnippet
  57. +0 −17 Snippets/should_not =~.tmSnippet
  58. +0 −17 Snippets/should_not eql.tmSnippet
  59. +0 −17 Snippets/should_not_be.tmSnippet
  60. +0 −17 Snippets/should_not_be_a_kind_of.tmSnippet
  61. +0 −17 Snippets/should_not_be_an_instance_of.tmSnippet
  62. +0 −17 Snippets/should_not_be_close.tmSnippet
  63. +0 −17 Snippets/should_not_be_redirect.tmSnippet
  64. +0 −17 Snippets/should_not_equal.tmSnippet
  65. +0 −17 Snippets/should_not_match.tmSnippet
  66. +0 −17 Snippets/should_not_predicate.tmSnippet
  67. +0 −17 Snippets/should_not_raise.tmSnippet
  68. +0 −18 Snippets/should_not_receive.tmSnippet
  69. +0 −17 Snippets/should_not_respond_to.tmSnippet
  70. +0 −17 Snippets/should_not_satisfy.tmSnippet
  71. +0 −17 Snippets/should_not_throw.tmSnippet
  72. +0 −17 Snippets/should_predicate.tmSnippet
  73. +0 −17 Snippets/should_raise.tmSnippet
  74. +0 −16 Snippets/should_receive.tmSnippet
  75. +0 −16 Snippets/should_receive_with_args.tmSnippet
  76. +0 −17 Snippets/should_redirect_to.tmSnippet
  77. +0 −17 Snippets/should_render.tmSnippet
  78. +0 −17 Snippets/should_respond_to.tmSnippet
  79. +0 −17 Snippets/should_satisfy.tmSnippet
  80. +0 −17 Snippets/should_throw.tmSnippet
  81. +0 −16 Snippets/stub.tmSnippet
  82. +0 −18 Snippets/teardown.tmSnippet
  83. +0 −16 Snippets/twice.tmSnippet
  84. +0 −12 Support/Rakefile
  85. +0 −9 Support/fixtures/example_failing_spec.rb
  86. +0 −9 Support/fixtures/example_passing_spec.rb
  87. +0 −20 Support/lib/spec/mate.rb
  88. +0 −66 Support/lib/spec/mate/runner.rb
  89. +0 −165 Support/lib/spec/mate/switch_command.rb
  90. +0 −116 Support/spec/spec/mate/runner_spec.rb
  91. +0 −227 Support/spec/spec/mate/switch_command_spec.rb
  92. +0 −15 Support/spec/spec_helper.rb
  93. +0 −183 Syntaxes/RSpec.tmLanguage
  94. +0 −297 info.plist
View
30 Commands/Alternate File.tmCommand
@@ -1,30 +0,0 @@
-<?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>beforeRunningCommand</key>
- <string>nop</string>
- <key>command</key>
- <string>#!/usr/bin/env sh
-cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
-
-require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate/switch_command"
-Spec::Mate::SwitchCommand.new.go_to_twin(ENV['TM_PROJECT_DIRECTORY'], ENV['TM_FILEPATH'])
-
-RUBYEOF
-
-${TM_RUBY:-ruby} /tmp/textmate-command-$$.rb; exit_status=$?; rm /tmp/textmate-command-$$.rb; exit $exit_status</string>
- <key>input</key>
- <string>none</string>
- <key>keyEquivalent</key>
- <string>^$</string>
- <key>name</key>
- <string>Alternate File</string>
- <key>output</key>
- <string>showAsTooltip</string>
- <key>scope</key>
- <string>source.ruby, text.html.ruby</string>
- <key>uuid</key>
- <string>0C96C910-0A83-4AFE-AEF7-1F4882A00232</string>
-</dict>
-</plist>
View
33 Commands/Run Focussed Specification.tmCommand
@@ -1,33 +0,0 @@
-<?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>beforeRunningCommand</key>
- <string>saveActiveFile</string>
- <key>command</key>
- <string>#!/usr/bin/env sh
-cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
-
-require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate"
-Spec::Mate::Runner.new.run_focussed STDOUT
-
-RUBYEOF
-
-${TM_RUBY:-ruby} /tmp/textmate-command-$$.rb; exit_status=$?; rm /tmp/textmate-command-$$.rb; exit $exit_status
-</string>
- <key>fallbackInput</key>
- <string>line</string>
- <key>input</key>
- <string>document</string>
- <key>keyEquivalent</key>
- <string>@R</string>
- <key>name</key>
- <string>Run Single Example</string>
- <key>output</key>
- <string>showAsHTML</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>uuid</key>
- <string>240FDD9D-CD49-4917-9003-80A3E1DADFBA</string>
-</dict>
-</plist>
View
32 Commands/Run Last Examples file.tmCommand
@@ -1,32 +0,0 @@
-<?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>beforeRunningCommand</key>
- <string>saveActiveFile</string>
- <key>command</key>
- <string>#!/usr/bin/env sh
-cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
-
-require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate"
-Spec::Mate::Runner.new.run_last_remembered_file STDOUT
-
-RUBYEOF
-
-${TM_RUBY:-ruby} /tmp/textmate-command-$$.rb; exit_status=$?; rm /tmp/textmate-command-$$.rb; exit $exit_status</string>
- <key>fallbackInput</key>
- <string>document</string>
- <key>input</key>
- <string>none</string>
- <key>keyEquivalent</key>
- <string>~@r</string>
- <key>name</key>
- <string>Run Last Examples file</string>
- <key>output</key>
- <string>showAsHTML</string>
- <key>scope</key>
- <string>source.ruby</string>
- <key>uuid</key>
- <string>1C172C2C-8785-40FC-B03E-7FF56AC0B265</string>
-</dict>
-</plist>
View
32 Commands/Run Specifications - Normal.tmCommand
@@ -1,32 +0,0 @@
-<?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>beforeRunningCommand</key>
- <string>saveActiveFile</string>
- <key>command</key>
- <string>#!/usr/bin/env sh
-cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
-
-require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate"
-Spec::Mate::Runner.new.run_file STDOUT
-
-RUBYEOF
-
-${TM_RUBY:-ruby} /tmp/textmate-command-$$.rb; exit_status=$?; rm /tmp/textmate-command-$$.rb; exit $exit_status</string>
- <key>fallbackInput</key>
- <string>document</string>
- <key>input</key>
- <string>document</string>
- <key>keyEquivalent</key>
- <string>@r</string>
- <key>name</key>
- <string>Run Examples</string>
- <key>output</key>
- <string>showAsHTML</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>uuid</key>
- <string>B5906021-8E54-4863-A13B-EA46333DB5F1</string>
-</dict>
-</plist>
View
31 Commands/Run Specifications in selected files or directories.tmCommand
@@ -1,31 +0,0 @@
-<?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>beforeRunningCommand</key>
- <string>saveModifiedFiles</string>
- <key>command</key>
- <string>#!/usr/bin/env sh
-cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
-
-require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate"
-Spec::Mate::Runner.new.run_files STDOUT
-
-RUBYEOF
-
-${TM_RUBY:-ruby} /tmp/textmate-command-$$.rb; exit_status=$?; rm /tmp/textmate-command-$$.rb; exit $exit_status
-</string>
- <key>input</key>
- <string>none</string>
- <key>keyEquivalent</key>
- <string>~@r</string>
- <key>name</key>
- <string>Run Examples in selected files/directories</string>
- <key>output</key>
- <string>showAsHTML</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>uuid</key>
- <string>67E726E0-63E2-4840-B8BB-37F665CD34B8</string>
-</dict>
-</plist>
View
35 Commands/Save spec and remember.tmCommand
@@ -1,35 +0,0 @@
-<?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>beforeRunningCommand</key>
- <string>saveActiveFile</string>
- <key>command</key>
- <string>#!/usr/bin/env sh
-cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
-
-require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate"
-# Remembers the last _spec.rb file so that 'Run last spec' command
-# can be activated from any Ruby source file
-
-Spec::Mate::Runner.new.save_as_last_remembered_file ENV['TM_FILEPATH']
-
-RUBYEOF
-
-${TM_RUBY:-ruby} /tmp/textmate-command-$$.rb; exit_status=$?; rm /tmp/textmate-command-$$.rb; exit $exit_status
-
-</string>
- <key>input</key>
- <string>none</string>
- <key>keyEquivalent</key>
- <string>@s</string>
- <key>name</key>
- <string>Save Example file and remember</string>
- <key>output</key>
- <string>showAsTooltip</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>uuid</key>
- <string>AC7FD3DD-A904-4B5B-8B02-4D6F04CD8ED4</string>
-</dict>
-</plist>
View
27 Commands/Update RSpec Bundle.tmCommand
@@ -1,27 +0,0 @@
-<?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>beforeRunningCommand</key>
- <string>nop</string>
- <key>command</key>
- <string>cd "$TM_BUNDLE_PATH"
-
-echo "&lt;pre&gt;"
-[ -d ".svn" ] &amp;&amp; svn up
-[ -d ".git" ] &amp;&amp; git pull
-[ ! -d .svn ] &amp;&amp; [ ! -d .git ] &amp;&amp; echo "You must install the RSpec bundle using Subversion or Git in order to update via this command."
-
-osascript -e 'tell app "TextMate" to reload bundles'
-
-echo "&lt;/pre&gt;"</string>
- <key>input</key>
- <string>selection</string>
- <key>name</key>
- <string>Update RSpec Bundle</string>
- <key>output</key>
- <string>showAsHTML</string>
- <key>uuid</key>
- <string>1C280956-9F2D-4C91-862E-ECE5FFFFEA41</string>
-</dict>
-</plist>
View
22 License.txt
@@ -1,22 +0,0 @@
-(The MIT License)
-
-Copyright (c) 2005-2008 Florian Weber (for TDDMate) and The RSpec Development Team
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
19 Preferences/Symbol List: Pending.tmPreferences
@@ -1,19 +0,0 @@
-<?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>name</key>
- <string>Symbol List: Pending</string>
- <key>scope</key>
- <string>meta.rspec.pending</string>
- <key>settings</key>
- <dict>
- <key>showInSymbolList</key>
- <integer>1</integer>
- <key>symbolTransformation</key>
- <string>s/^\s*(it)\s+(.+)\s*$/ $2 (Pending)/</string>
- </dict>
- <key>uuid</key>
- <string>377BD4F9-4321-4D14-9A34-6A93033F1906</string>
-</dict>
-</plist>
View
19 Preferences/SymbolList-Behaviour.tmPreferences
@@ -1,19 +0,0 @@
-<?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>name</key>
- <string>Symbol List: Behaviour</string>
- <key>scope</key>
- <string>meta.rspec.behaviour</string>
- <key>settings</key>
- <dict>
- <key>showInSymbolList</key>
- <integer>1</integer>
- <key>symbolTransformation</key>
- <string>s/^\s*(describe)\s+(.+)\s+do\s*$/$2/</string>
- </dict>
- <key>uuid</key>
- <string>28F89786-04F4-43D7-82A6-34B046C2BC6B</string>
-</dict>
-</plist>
View
19 Preferences/SymbolList-Example.tmPreferences
@@ -1,19 +0,0 @@
-<?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>name</key>
- <string>Symbol List: Example</string>
- <key>scope</key>
- <string>meta.rspec.example</string>
- <key>settings</key>
- <dict>
- <key>showInSymbolList</key>
- <integer>1</integer>
- <key>symbolTransformation</key>
- <string>s/^\s*(it)\s+(.+)\s+do\s*$/ $2/</string>
- </dict>
- <key>uuid</key>
- <string>57EF6130-05A6-4117-94CB-C0BD63328334</string>
-</dict>
-</plist>
View
13 README.rdoc
@@ -1,11 +1,4 @@
-== History
-Parts of RSpec.tmbundle is based on Florian Weber's TDDMate.
+== MOVED
-== License
-The license of RSpec.tmbundle is the same as RSpec's.
-
-== Installation
-
-cd ~/Library/Application\ Support/TextMate/Bundles/
-git clone git://github.com/dchelimsky/rspec-tmbundle.git RSpec.tmbundle
-osascript -e 'tell app "TextMate" to reload bundles'
+Development of the RSpec TextMate bundle has moved to
+http://github.com/rspec/rspec-tmbundle
View
18 Snippets/Describe.tmSnippet
@@ -1,18 +0,0 @@
-<?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>describe "${1:subject}" do
- $0
-end</string>
- <key>name</key>
- <string>describe (String)</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>des</string>
- <key>uuid</key>
- <string>34CBBD13-CE8E-4601-9968-C2CB0D771CA5</string>
-</dict>
-</plist>
View
18 Snippets/Describe_type.tmSnippet
@@ -1,18 +0,0 @@
-<?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>describe ${1:Type} do
- $0
-end</string>
- <key>name</key>
- <string>describe (type)</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>dest</string>
- <key>uuid</key>
- <string>2ED94046-DAF7-4C91-8D98-771513BB3804</string>
-</dict>
-</plist>
View
18 Snippets/Describe_type_string.tmSnippet
@@ -1,18 +0,0 @@
-<?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>describe ${1:Type}, "${2:description}" do
- $0
-end</string>
- <key>name</key>
- <string>describe (type, string)</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>dests</string>
- <key>uuid</key>
- <string>ACFE21E0-902B-45C4-BF54-D137718FF61C</string>
-</dict>
-</plist>
View
18 Snippets/It.tmSnippet
@@ -1,18 +0,0 @@
-<?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>it "${1:does something}"${2: do
- $0
-end}</string>
- <key>name</key>
- <string>it (does something)</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>it</string>
- <key>uuid</key>
- <string>AD51AA2B-09C9-40DE-9720-2FD43C967FA9</string>
-</dict>
-</plist>
View
39 Snippets/Matcher (Custom).tmSnippet
@@ -1,39 +0,0 @@
-<?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>
View
21 Snippets/Matcher (DSL).tmSnippet
@@ -1,21 +0,0 @@
-<?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>Spec::Matchers.define :${1:name} do |${2:expected}|
- match do |${3:actual}|
- $3.$1?($2)
- end
-end
-</string>
- <key>name</key>
- <string>Matcher (DSL)</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>mat</string>
- <key>uuid</key>
- <string>15CE9873-2B79-44C5-8B20-2DA3BBF97E9E</string>
-</dict>
-</plist>
View
18 Snippets/Require spec_helper.tmSnippet
@@ -1,18 +0,0 @@
-<?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>require 'spec_helper'
-
-</string>
- <key>name</key>
- <string>Require spec_helper</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>reqs</string>
- <key>uuid</key>
- <string>DAD2B74D-2105-42B0-9FC5-466F3B3D0DB7</string>
-</dict>
-</plist>
View
16 Snippets/Set Controller for Spec.tmSnippet
@@ -1,16 +0,0 @@
-<?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>controller_name :${1:controller}</string>
- <key>name</key>
- <string>controller_name</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>conn</string>
- <key>uuid</key>
- <string>57374EB7-6CCE-4281-97A7-289905315351</string>
-</dict>
-</plist>
View
16 Snippets/and_raise.tmSnippet
@@ -1,16 +0,0 @@
-<?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>and_raise(${1:exception})</string>
- <key>name</key>
- <string>and_raise</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>anr</string>
- <key>uuid</key>
- <string>65B85B0D-26FC-4A08-8D6A-7BF00AA787FC</string>
-</dict>
-</plist>
View
16 Snippets/and_return_block.tmSnippet
@@ -1,16 +0,0 @@
-<?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>and_return { $1 }</string>
- <key>name</key>
- <string>and_return with block</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>anrb</string>
- <key>uuid</key>
- <string>C57E9EFD-3FE7-40ED-832E-DD812D1FB769</string>
-</dict>
-</plist>
View
16 Snippets/and_return_value.tmSnippet
@@ -1,16 +0,0 @@
-<?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>and_return(${1:value})</string>
- <key>name</key>
- <string>and_return with args</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>andra</string>
- <key>uuid</key>
- <string>804A1B15-0756-438F-892F-2B72BE4490F0</string>
-</dict>
-</plist>
View
16 Snippets/and_throw.tmSnippet
@@ -1,16 +0,0 @@
-<?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>and_throw(${1:sym})</string>
- <key>name</key>
- <string>and_throw</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>ant</string>
- <key>uuid</key>
- <string>2CC293EE-496A-4B66-928C-332DDCBEE884</string>
-</dict>
-</plist>
View
16 Snippets/and_yield.tmSnippet
@@ -1,16 +0,0 @@
-<?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>and_yield(${1:values})</string>
- <key>name</key>
- <string>and_yield</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>any</string>
- <key>uuid</key>
- <string>ED3A9BE5-8695-44FF-9B6B-A7FF4C13727C</string>
-</dict>
-</plist>
View
16 Snippets/any_number_of_times.tmSnippet
@@ -1,16 +0,0 @@
-<?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>any_number_of_times</string>
- <key>name</key>
- <string>any_number_of_times</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>annot</string>
- <key>uuid</key>
- <string>D5E64C38-9CBC-4825-9A66-5718DA91AAD6</string>
-</dict>
-</plist>
View
16 Snippets/at_least.tmSnippet
@@ -1,16 +0,0 @@
-<?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>at_least(${1:n}).times</string>
- <key>name</key>
- <string>at_least</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>atl</string>
- <key>uuid</key>
- <string>F2FDA911-B713-4788-81BF-EF33E9A4FB26</string>
-</dict>
-</plist>
View
16 Snippets/at_most.tmSnippet
@@ -1,16 +0,0 @@
-<?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>at_most(${1:n}).times</string>
- <key>name</key>
- <string>at_most</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>atm</string>
- <key>uuid</key>
- <string>9A891C8D-4285-4C7D-BA03-6CA50A89F9C0</string>
-</dict>
-</plist>
View
18 Snippets/configure.tmSnippet
@@ -1,18 +0,0 @@
-<?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>Spec::Runner.configure do |config|
- config.$0
-end</string>
- <key>name</key>
- <string>configure</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>cnf</string>
- <key>uuid</key>
- <string>B8AD7AB4-2F0B-4B00-9DFA-5C84994FCD0C</string>
-</dict>
-</plist>
View
18 Snippets/context.tmSnippet
@@ -1,18 +0,0 @@
-<?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>context "${1:context}" do
- $0
-end</string>
- <key>name</key>
- <string>context</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>con</string>
- <key>uuid</key>
- <string>A373048F-BDEC-458B-8886-79058296C8DC</string>
-</dict>
-</plist>
View
20 Snippets/controller_context.tmSnippet
@@ -1,20 +0,0 @@
-<?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>require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
-
-describe ${1:controller} do
- $0
-end</string>
- <key>name</key>
- <string>describe (Controller)</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>desc</string>
- <key>uuid</key>
- <string>FC8C2948-3653-41B3-965A-5D0B7C64CB41</string>
-</dict>
-</plist>
View
18 Snippets/controller_context_RESTful.tmSnippet
@@ -1,18 +0,0 @@
-<?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>describe ${1:controller}, "${2:GET|POST|PUT|DELETE} ${3:/some/path}${4: with some parameters}" do
- $0
-end</string>
- <key>name</key>
- <string>describe (RESTful Controller)</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>desrc</string>
- <key>uuid</key>
- <string>0ED99C84-1F7B-471E-BB88-B59C5D08FA6B</string>
-</dict>
-</plist>
View
16 Snippets/exactly.tmSnippet
@@ -1,16 +0,0 @@
-<?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>exactly(${1:n}).times</string>
- <key>name</key>
- <string>exactly</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>ex</string>
- <key>uuid</key>
- <string>1A3662E4-DB9D-4F29-8E42-984755A419FA</string>
-</dict>
-</plist>
View
18 Snippets/it should.tmSnippet
@@ -1,18 +0,0 @@
-<?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>it "should ${1:do something}"${2: do
- $0
-end}</string>
- <key>name</key>
- <string>it (should do something)</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>its</string>
- <key>uuid</key>
- <string>ED8BDE00-5FD7-4E47-84FD-4B971557FD73</string>
-</dict>
-</plist>
View
17 Snippets/mock.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:var} = mock("${2:mock_name}"${3:, :null_object =&gt; true})
-$0</string>
- <key>name</key>
- <string>mock</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>moc</string>
- <key>uuid</key>
- <string>AA3D9F87-FE8F-4808-A732-F368CCB9DED6</string>
-</dict>
-</plist>
View
16 Snippets/mock_model.tmSnippet
@@ -1,16 +0,0 @@
-<?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>mock_model(${1:model})$0</string>
- <key>name</key>
- <string>mock_model</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>mm</string>
- <key>uuid</key>
- <string>E71599F8-CBE4-4D08-BC3F-FC785C5860D0</string>
-</dict>
-</plist>
View
18 Snippets/mock_with.tmSnippet
@@ -1,18 +0,0 @@
-<?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>Spec::Runner.configure do |config|
- config.mock_with :${0:mocha|flexmock|rr}
-end</string>
- <key>name</key>
- <string>mock_with</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>mocw</string>
- <key>uuid</key>
- <string>520CA137-E4FC-4DB0-92DA-980DFE54A35B</string>
-</dict>
-</plist>
View
16 Snippets/once.tmSnippet
@@ -1,16 +0,0 @@
-<?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>once</string>
- <key>name</key>
- <string>once</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>on</string>
- <key>uuid</key>
- <string>695ECDF3-FEFC-4702-AF71-641E64017907</string>
-</dict>
-</plist>
View
17 Snippets/response_should_be_success.tmSnippet
@@ -1,17 +0,0 @@
-<?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>response.should be_success
-$0</string>
- <key>name</key>
- <string>should be_success</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shbs</string>
- <key>uuid</key>
- <string>0A118507-983C-4441-8B00-73AF7E931FC5</string>
-</dict>
-</plist>
View
17 Snippets/response_should_not_be_success.tmSnippet
@@ -1,17 +0,0 @@
-<?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>response.should_not be_success
-$0</string>
- <key>name</key>
- <string>should_not be_success</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shnbs</string>
- <key>uuid</key>
- <string>8303E848-4F07-4D3C-98FA-19DA4676812E</string>
-</dict>
-</plist>
View
18 Snippets/setup.tmSnippet
@@ -1,18 +0,0 @@
-<?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>before(${1::each}) do
- $0
-end</string>
- <key>name</key>
- <string>before</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>bef</string>
- <key>uuid</key>
- <string>7D960FC5-4859-4328-A06B-73A3CF6763E0</string>
-</dict>
-</plist>
View
17 Snippets/should ==.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should == ${2:value}
-$0</string>
- <key>name</key>
- <string>should ==</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>sh=</string>
- <key>uuid</key>
- <string>AF99B458-D589-414D-87C7-8FACD2EF9FD5</string>
-</dict>
-</plist>
View
17 Snippets/should =~.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should =~ /${2:regexp}/
-$0</string>
- <key>name</key>
- <string>should =~</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shm</string>
- <key>uuid</key>
- <string>0BD5A07E-5FB3-44A3-991F-ABA04BA632D7</string>
-</dict>
-</plist>
View
17 Snippets/should eql.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should eql(${2:value})
-$0</string>
- <key>name</key>
- <string>should eql</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>she</string>
- <key>uuid</key>
- <string>0F03467B-16F7-4764-99C6-B7F123E95E5C</string>
-</dict>
-</plist>
View
17 Snippets/should_be.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should be(${2:result})
-$0</string>
- <key>name</key>
- <string>should be</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shb</string>
- <key>uuid</key>
- <string>F401AA03-A119-4965-8677-BDAAE8312F13</string>
-</dict>
-</plist>
View
17 Snippets/should_be_a_kind_of.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should be_a_kind_of(${2:klass})
-$0</string>
- <key>name</key>
- <string>should be_kind_of</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shbko</string>
- <key>uuid</key>
- <string>29BF3286-6D33-418D-9BD5-79BAB0797FE4</string>
-</dict>
-</plist>
View
17 Snippets/should_be_an_instance_of.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should be_instance_of(${2:klass})
-$0</string>
- <key>name</key>
- <string>should be_instance_of</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shbio</string>
- <key>uuid</key>
- <string>8C5B6597-E115-4569-AE58-EF04042B21CD</string>
-</dict>
-</plist>
View
17 Snippets/should_be_close.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should be_close(${2:result}, ${3:tolerance})
-$0</string>
- <key>name</key>
- <string>should be_close</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shbc</string>
- <key>uuid</key>
- <string>5A203680-6F32-482F-A6A3-50CB7EE99E0E</string>
-</dict>
-</plist>
View
17 Snippets/should_be_redirect.tmSnippet
@@ -1,17 +0,0 @@
-<?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>response.should be_redirect
-$0</string>
- <key>name</key>
- <string>should be_redirect</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shbr</string>
- <key>uuid</key>
- <string>E4DA45B3-736F-40DF-8344-25A79E073730</string>
-</dict>
-</plist>
View
17 Snippets/should_equal.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should equal(${2:value})
-$0</string>
- <key>name</key>
- <string>should equal</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>she</string>
- <key>uuid</key>
- <string>7DB5AC43-745F-488A-99F1-54CD923DCC38</string>
-</dict>
-</plist>
View
17 Snippets/should_have.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should have(${2:num}).${3:things}
-$0</string>
- <key>name</key>
- <string>should have</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shh</string>
- <key>uuid</key>
- <string>42B1F497-2BAF-425D-9829-57E35456E7FE</string>
-</dict>
-</plist>
View
17 Snippets/should_have_at_least.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should have_at_least(${2:num}).${3:things}
-$0</string>
- <key>name</key>
- <string>should have_at_least</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shhal</string>
- <key>uuid</key>
- <string>8A4F8C8E-B347-4D18-9203-247256874C47</string>
-</dict>
-</plist>
View
17 Snippets/should_have_at_most.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should have_at_most(${2:num}).${3:things}
-$0</string>
- <key>name</key>
- <string>should have_at_most</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shham</string>
- <key>uuid</key>
- <string>1BE271C6-3310-46A8-83E1-88C45BBE27AC</string>
-</dict>
-</plist>
View
17 Snippets/should_have_records.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should have(${2:x}).records
-$0</string>
- <key>name</key>
- <string>should have_records</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shhr</string>
- <key>uuid</key>
- <string>9605BD4A-93E5-4D57-99FB-D8844D40F183</string>
-</dict>
-</plist>
View
17 Snippets/should_match.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should match(/${2:regexp}/)
-$0</string>
- <key>name</key>
- <string>should match</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shm</string>
- <key>uuid</key>
- <string>D6CE8D1B-16EC-4E0E-8089-62F193D3D048</string>
-</dict>
-</plist>
View
17 Snippets/should_not ==.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should_not == ${2:value}
-$0</string>
- <key>name</key>
- <string>should_not ==</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shn=</string>
- <key>uuid</key>
- <string>3A699BC3-3E17-4CFD-844C-2285F971379C</string>
-</dict>
-</plist>
View
17 Snippets/should_not =~.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should_not =~ /${2:regexp}/
-$0</string>
- <key>name</key>
- <string>should_not =~</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shnm</string>
- <key>uuid</key>
- <string>7563CED5-5FD8-454C-972C-AC240D549E8B</string>
-</dict>
-</plist>
View
17 Snippets/should_not eql.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should_not eql(${2:value})
-$0</string>
- <key>name</key>
- <string>should_not eql</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shne</string>
- <key>uuid</key>
- <string>04BED613-C9EF-4E41-82D7-9958BBDBE0E3</string>
-</dict>
-</plist>
View
17 Snippets/should_not_be.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should_not be(${2:result})
-$0</string>
- <key>name</key>
- <string>should_not be</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shnb</string>
- <key>uuid</key>
- <string>BD1CBF13-3A1F-49AB-8B3A-25967B437FD7</string>
-</dict>
-</plist>
View
17 Snippets/should_not_be_a_kind_of.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should_not be_a_kind_of(${2:klass})
-$0</string>
- <key>name</key>
- <string>should_not be_kind_of</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shkof</string>
- <key>uuid</key>
- <string>96C5A0CC-08D9-4DCE-B127-78370964E64E</string>
-</dict>
-</plist>
View
17 Snippets/should_not_be_an_instance_of.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should_not be_instance_of(${2:klass})
-$0</string>
- <key>name</key>
- <string>should_not be_instance_of</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shbio</string>
- <key>uuid</key>
- <string>364B3C9C-409C-4FC8-A12A-9A05CFB476CF</string>
-</dict>
-</plist>
View
17 Snippets/should_not_be_close.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should_not be_close(${2:result}, ${3:tolerance})
-$0</string>
- <key>name</key>
- <string>should_not be_close</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shnbc</string>
- <key>uuid</key>
- <string>259BCEC6-878E-411F-A6B7-69B038B75CE1</string>
-</dict>
-</plist>
View
17 Snippets/should_not_be_redirect.tmSnippet
@@ -1,17 +0,0 @@
-<?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>response.should_not be_redirect
-$0</string>
- <key>name</key>
- <string>should_not be_redirect</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shnbr</string>
- <key>uuid</key>
- <string>E79DAF3F-8960-47C1-A34C-3D0E4B0AF926</string>
-</dict>
-</plist>
View
17 Snippets/should_not_equal.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should_not equal(${2:value})
-$0</string>
- <key>name</key>
- <string>should_not equal</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shne</string>
- <key>uuid</key>
- <string>A6966089-6A33-4836-B85D-9CB72DBEB0A5</string>
-</dict>
-</plist>
View
17 Snippets/should_not_match.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should_not match(/${2:regexp}/)
-$0</string>
- <key>name</key>
- <string>should_not match</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shnm</string>
- <key>uuid</key>
- <string>014285F3-D908-427F-B535-E5A4AEF09339</string>
-</dict>
-</plist>
View
17 Snippets/should_not_predicate.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should_not ${2:be_${3:predicate}} $4
-$0</string>
- <key>name</key>
- <string>should_not predicate</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shnp</string>
- <key>uuid</key>
- <string>1D0BB312-A029-4A43-A024-EF6C03506CEC</string>
-</dict>
-</plist>
View
17 Snippets/should_not_raise.tmSnippet
@@ -1,17 +0,0 @@
-<?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>lambda { $1 }.should_not raise_error(${2:error})
-$0</string>
- <key>name</key>
- <string>should_not raise_error</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shnre</string>
- <key>uuid</key>
- <string>D6B8DA1B-D07A-4C1E-A27B-59C502104BEA</string>
-</dict>
-</plist>
View
18 Snippets/should_not_receive.tmSnippet
@@ -1,18 +0,0 @@
-<?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>${1:mock}.should_not_receive(:${2:message})$3
-$0
-</string>
- <key>name</key>
- <string>should_not_receive</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shnr</string>
- <key>uuid</key>
- <string>4CBCCACF-D6DA-49A6-9A8E-EC2F9CD15E94</string>
-</dict>
-</plist>
View
17 Snippets/should_not_respond_to.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should_not respond_to(:${2:sym})
-$0</string>
- <key>name</key>
- <string>should_not respond_to</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shnrt</string>
- <key>uuid</key>
- <string>E352E5F0-C83B-4C36-AC72-7BFC4F58DBF0</string>
-</dict>
-</plist>
View
17 Snippets/should_not_satisfy.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should_not satisfy { |obj| $2 }
-$0</string>
- <key>name</key>
- <string>should_not satisfy</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shns</string>
- <key>uuid</key>
- <string>E573AF3E-F301-4105-ACA3-C9913431E6ED</string>
-</dict>
-</plist>
View
17 Snippets/should_not_throw.tmSnippet
@@ -1,17 +0,0 @@
-<?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>lambda { $1 }.should_not throw_symbol(:${2:symbol})
-$0</string>
- <key>name</key>
- <string>should_not throw</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shnt</string>
- <key>uuid</key>
- <string>EF7CD2D2-68BC-425B-9C49-7E3597EFE804</string>
-</dict>
-</plist>
View
17 Snippets/should_predicate.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should ${2:be_${3:predicate}} $4
-$0</string>
- <key>name</key>
- <string>should predicate</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shp</string>
- <key>uuid</key>
- <string>FCFC8C47-F477-4674-BFDD-2E0B8D475CE0</string>
-</dict>
-</plist>
View
17 Snippets/should_raise.tmSnippet
@@ -1,17 +0,0 @@
-<?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>lambda { $1 }.should raise_error(${2:error})
-$0</string>
- <key>name</key>
- <string>should raise_error</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shre</string>
- <key>uuid</key>
- <string>813263F0-A2C0-465F-A617-69ECBAF8F7DD</string>
-</dict>
-</plist>
View
16 Snippets/should_receive.tmSnippet
@@ -1,16 +0,0 @@
-<?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>${1:mock}.should_receive(:${2:message})$3</string>
- <key>name</key>
- <string>should_receive</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shr</string>
- <key>uuid</key>
- <string>0A7E08E5-4756-49BA-B015-FB3A4D11EA45</string>
-</dict>
-</plist>
View
16 Snippets/should_receive_with_args.tmSnippet
@@ -1,16 +0,0 @@
-<?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>with(${1})$2</string>
- <key>name</key>
- <string>with args</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>wia</string>
- <key>uuid</key>
- <string>3F3E8066-8C1A-40D1-85C7-9DC18C6A34BA</string>
-</dict>
-</plist>
View
17 Snippets/should_redirect_to.tmSnippet
@@ -1,17 +0,0 @@
-<?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>response.should redirect_to(${1:url})
-$0</string>
- <key>name</key>
- <string>should redirect_to</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shrt</string>
- <key>uuid</key>
- <string>96F0A193-32F1-4A75-9093-5D20E36593EC</string>
-</dict>
-</plist>
View
17 Snippets/should_render.tmSnippet
@@ -1,17 +0,0 @@
-<?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>response.should render_template(:${1:template})
-$0</string>
- <key>name</key>
- <string>should render_template</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shrt</string>
- <key>uuid</key>
- <string>647C94D6-42FE-40F0-8618-73F7725BF59E</string>
-</dict>
-</plist>
View
17 Snippets/should_respond_to.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should respond_to(:${2:sym})
-$0</string>
- <key>name</key>
- <string>should respond_to</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shrt</string>
- <key>uuid</key>
- <string>D139CA8C-AACC-4314-AB86-BB3021D31B12</string>
-</dict>
-</plist>
View
17 Snippets/should_satisfy.tmSnippet
@@ -1,17 +0,0 @@
-<?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>${1:target}.should satisfy { |obj| $2 }
-$0</string>
- <key>name</key>
- <string>should satisfy</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>shs</string>
- <key>uuid</key>
- <string>3FF9AC90-799D-4BFD-8203-58199A1AD429</string>
-</dict>
-</plist>
View
17 Snippets/should_throw.tmSnippet
@@ -1,17 +0,0 @@
-<?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>lambda { $1 }.should throw_symbol(:${2:symbol})
-$0</string>
- <key>name</key>
- <string>should throw</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>sht</string>
- <key>uuid</key>
- <string>C41E8AD6-00F5-44E7-9809-F79666FE79F0</string>
-</dict>
-</plist>
View
16 Snippets/stub.tmSnippet
@@ -1,16 +0,0 @@
-<?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>${1:double}.stub(:${2:message})$3</string>
- <key>name</key>
- <string>stub</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>stu</string>
- <key>uuid</key>
- <string>C4DD43A2-7E6A-4875-AF86-7EF7963BF83D</string>
-</dict>
-</plist>
View
18 Snippets/teardown.tmSnippet
@@ -1,18 +0,0 @@
-<?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>after(${1::each}) do
- $0
-end</string>
- <key>name</key>
- <string>after</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>aft</string>
- <key>uuid</key>
- <string>1201777F-3AC4-4B2A-9A46-C215F891B07A</string>
-</dict>
-</plist>
View
16 Snippets/twice.tmSnippet
@@ -1,16 +0,0 @@
-<?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>twice</string>
- <key>name</key>
- <string>twice</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>tw</string>
- <key>uuid</key>
- <string>85E6D1EE-74A4-4B4A-8A00-942B788FF599</string>
-</dict>
-</plist>
View
12 Support/Rakefile
@@ -1,12 +0,0 @@
-$:.unshift(File.dirname(__FILE__) + '/../../example_rails_app/vendor/plugins/rspec/lib')
-require 'rubygems'
-require 'spec/rake/spectask'
-
-task :default => :spec
-
-desc "Run all specs"
-Spec::Rake::SpecTask.new do |t|
- t.rcov = true
- t.spec_opts = ['--colour', '--diff']
- t.rcov_opts = ['--exclude', 'rspec\/plugins,rspec\/lib\/spec,spec\/spec,fixtures,bin\/spec']
-end
View
9 Support/fixtures/example_failing_spec.rb
@@ -1,9 +0,0 @@
-describe "An example failing spec" do
- it "should fail" do
- true.should be_false
- end
-
- it "should also fail" do
- false.should be_true
- end
-end
View
9 Support/fixtures/example_passing_spec.rb
@@ -1,9 +0,0 @@
-describe "An example failing spec" do
- it "should pass" do
- true.should be_true
- end
-
- it "should pass too" do
- false.should be_false
- end
-end
View
20 Support/lib/spec/mate.rb
@@ -1,20 +0,0 @@
-# This is based on Florian Weber's TDDMate
-require 'rubygems'
-
-ENV['TM_PROJECT_DIRECTORY'] ||= File.dirname(ENV['TM_FILEPATH'])
-rspec_rails_plugin = File.join(ENV['TM_PROJECT_DIRECTORY'],'vendor','plugins','rspec','lib')
-
-if File.directory?(rspec_rails_plugin)
- $LOAD_PATH.unshift(rspec_rails_plugin)
-elsif ENV['TM_RSPEC_HOME']
- rspec_lib = File.join(ENV['TM_RSPEC_HOME'], 'lib')
- unless File.directory?(rspec_lib)
- raise "TM_RSPEC_HOME points to a bad location: #{ENV['TM_RSPEC_HOME']}"
- end
- $LOAD_PATH.unshift(rspec_lib)
-end
-require 'spec/autorun'
-
-$LOAD_PATH.unshift(File.dirname(__FILE__) + '/..')
-require 'spec/mate/runner'
-require 'spec/mate/switch_command'
View
66 Support/lib/spec/mate/runner.rb
@@ -1,66 +0,0 @@
-module Spec
- module Mate
- class Runner
- def run_files(stdout, options={})
- files = ENV['TM_SELECTED_FILES'].scan(/'(.*?)'/).flatten.map do |path|
- File.expand_path(path)
- end
- options.merge!({:files => files})
- run(stdout, options)
- end
-
- def run_file(stdout, options={})
- options.merge!({:files => [single_file]})
- run(stdout, options)
- end
-
- def run_last_remembered_file(stdout, options={})
- options.merge!({:files => [last_remembered_single_file]})
- run(stdout, options)
- end
-
- def run_focussed(stdout, options={})
- options.merge!({:files => [single_file], :line => ENV['TM_LINE_NUMBER']})
- run(stdout, options)
- end
-
- def run(stdout, options)
- argv = options[:files].dup
- argv << '--format'
- argv << 'textmate'
- if options[:line]
- argv << '--line'
- argv << options[:line]
- end
- argv += ENV['TM_RSPEC_OPTS'].split(" ") if ENV['TM_RSPEC_OPTS']
- Dir.chdir(project_directory) do
- ::Spec::Runner::CommandLine.run(::Spec::Runner::OptionParser.parse(argv, STDERR, stdout))
- end
- end
-
- def save_as_last_remembered_file(file)
- File.open(last_remembered_file_cache, "w") do |f|
- f << file
- end
- end
-
- def last_remembered_file_cache
- "/tmp/textmate_rspec_last_remembered_file_cache.txt"
- end
-
- protected
- def single_file
- File.expand_path(ENV['TM_FILEPATH'])
- end
-
- def last_remembered_single_file
- file = File.read(last_remembered_file_cache).strip
- File.expand_path(file) if file.size > 0
- end
-
- def project_directory
- File.expand_path(ENV['TM_PROJECT_DIRECTORY']) rescue File.dirname(single_file)
- end
- end
- end
-end
View
165 Support/lib/spec/mate/switch_command.rb
@@ -1,165 +0,0 @@
-module Spec
- module Mate
- # This is based on Ruy Asan's initial code:
- # http://ruy.ca/posts/6-A-simple-switch-between-source-and-spec-file-command-for-textmate-with-auto-creation-
- class SwitchCommand
- def go_to_twin(project_directory, filepath)
- other = twin(filepath)
- if File.file?(other)
- %x{ "$TM_SUPPORT_PATH/bin/mate" "#{other}" }
- else
- relative = other[project_directory.length+1..-1]
- file_type = file_type(other)
- if create?(relative, file_type)
- content = content_for(file_type, relative)
- write_and_open(other, content)
- end
- end
- end
-
- module Framework
- def rails?
- File.exist?(File.join(self, 'config', 'boot.rb'))
- end
-
- def merb?
- File.exist?(File.join(self, 'config', 'init.rb'))
- end
- end
-
- def twin(path)
- if path =~ /^(.*?)\/(lib|app|spec)\/(.*?)$/
- framework, parent, rest = $1, $2, $3
- framework.extend Framework
-
- case parent
- when 'lib', 'app' then
- if framework.rails? || framework.merb?
- path = path.gsub(/\/app\//, "/spec/")
- path = path.gsub(/\/lib\//, "/spec/lib/")
- path = path.gsub(/application\.rb/, 'application_controller.rb')
- else
- path = path.gsub(/\/lib\//, "/spec/")
- end
- path = path.gsub(/\.rb$/, "_spec.rb")
- path = path.gsub(/\.erb$/, ".erb_spec.rb")
- path = path.gsub(/\.haml$/, ".haml_spec.rb")
- path = path.gsub(/\.rhtml$/, ".rhtml_spec.rb")
- path = path.gsub(/\.rjs$/, ".rjs_spec.rb")
- when 'spec' then
- path = path.gsub(/\.rjs_spec\.rb$/, ".rjs")
- path = path.gsub(/\.rhtml_spec\.rb$/, ".rhtml")
- path = path.gsub(/\.erb_spec\.rb$/, ".erb")
- path = path.gsub(/\.haml_spec\.rb$/, ".haml")
- path = path.gsub(/_spec\.rb$/, ".rb")
- if framework.rails? || framework.merb?
- path = path.gsub(/\/spec\/lib\//, "/lib/")
- path = path.gsub(/\/spec\//, "/app/")
- path = path.gsub(/application_controller\.rb/, 'application.rb')
- else
- path = path.gsub(/\/spec\//, "/lib/")
- end
- end
- return path
- end
- end
-
- def file_type(path)
- if path =~ /^(.*?)\/(spec)\/(controllers|helpers|models|views)\/(.*?)$/
- return "#{$3[0..-2]} spec"
- end
- if path =~ /^(.*?)\/(app)\/(controllers|helpers|models|views)\/(.*?)$/
- return $3[0..-2]
- end
- if path =~ /_spec\.rb$/
- return "spec"
- end
- "file"
- end
-
- def create?(relative_twin, file_type)
- answer = `'#{ ENV['TM_SUPPORT_PATH'] }/bin/CocoaDialog.app/Contents/MacOS/CocoaDialog' yesno-msgbox --no-cancel --icon document --informative-text "#{relative_twin}" --text "Create missing #{file_type}?"`
- answer.to_s.chomp == "1"
- end
-
- def content_for(file_type, relative_path)
- case file_type
- when /spec$/ then
- spec(relative_path)
- when "controller"
- <<-CONTROLLER
-class #{class_from_path(relative_path)} < ApplicationController
-end
-CONTROLLER
- when "model"
- <<-MODEL
-class #{class_from_path(relative_path)} < ActiveRecord::Base
-end
-MODEL
- when "helper"
- <<-HELPER
-module #{class_from_path(relative_path)}
-end
-HELPER
- when "view"
- ""
- else
- klass(relative_path)
- end
- end
-
- def class_from_path(path)
- underscored = path.split('/').last.split('.rb').first
- parts = underscored.split('_')
- parts.inject("") do |word, part|
- word << part.capitalize
- word
- end
- end
-
- # Extracts the snippet text
- def snippet(snippet_name)
- snippet_file = File.expand_path(File.dirname(__FILE__) + "/../../../../Snippets/#{snippet_name}")
- xml = File.open(snippet_file).read
- xml.match(/<key>content<\/key>\s*<string>([^<]*)<\/string>/m)[1]
- end
-
- def spec(path)
- content = <<-SPEC
-require 'spec_helper'
-
-#{snippet("Describe_type.tmSnippet")}
-SPEC
- end
-
- def klass(relative_path, content=nil)
- parts = relative_path.split('/')
- lib_index = parts.index('lib') || 0
- parts = parts[lib_index+1..-1]
- lines = Array.new(parts.length*2)
- parts.each_with_index do |part, n|
- part = part.capitalize
- indent = " " * n
- line = if part =~ /(.*)\.rb/
- part = $1
- "#{indent}class #{part}"
- else
- "#{indent}module #{part}"
- end
- lines[n] = line
- lines[lines.length-(n+1)] = "#{indent}end"
- end
- lines.join("\n") + "\n"
- end
-
- def write_and_open(path, content)
- `mkdir -p "#{File.dirname(path)}"`
- `touch "#{path}"`
- `"$TM_SUPPORT_PATH/bin/mate" "#{path}"`
- `osascript &>/dev/null -e 'tell app "SystemUIServer" to activate' -e 'tell app "TextMate" to activate'`
- escaped_content = content.gsub("\n","\\n").gsub('$','\\$').gsub('"','\\\\\\\\\\\\"')
- `osascript &>/dev/null -e "tell app \\"TextMate\\" to insert \\"#{escaped_content}\\" as snippet true"`
- end
- end
- end
-end
View
116 Support/spec/spec/mate/runner_spec.rb
@@ -1,116 +0,0 @@
-require File.dirname(__FILE__) + '/../../spec_helper'