Permalink
Browse files

Merged in a ton of goodness/updates from ashmoran:merge_recent_improv…

…ements
  • Loading branch information...
2 parents 761dff6 + 81fcd3f commit 4d1936485e75f777a4ae1f1383830049ea60b612 Greg Williams committed Dec 26, 2013
Showing with 175 additions and 941 deletions.
  1. +6 −0 Default.sublime-commands
  2. +19 −21 README.md
  3. +7 −2 RSpec.tmLanguage
  4. +0 −20 Snippets/Describe.tmSnippet
  5. +2 −2 Snippets/Describe_type.tmSnippet
  6. +2 −2 Snippets/Describe_type_string.tmSnippet
  7. +0 −18 Snippets/It.tmSnippet
  8. +1 −1 Snippets/Require spec_helper.tmSnippet
  9. +8 −0 Snippets/context.sublime-snippet
  10. +0 −18 Snippets/context.tmSnippet
  11. +0 −20 Snippets/controller_context.tmSnippet
  12. +0 −18 Snippets/controller_context_RESTful.tmSnippet
  13. +8 −0 Snippets/describe-block.sublime-snippet
  14. +6 −0 Snippets/expect-block-to.sublime-snippet
  15. +6 −0 Snippets/expect-one-line.sublime-snippet
  16. +6 −0 Snippets/expect-to-be-close.sublime-snippet
  17. +6 −0 Snippets/expect-to-be-nil.sublime-snippet
  18. +6 −0 Snippets/expect-to-be.sublime-snippet
  19. +9 −0 Snippets/expect-to-block.sublime-snippet
  20. +6 −0 Snippets/expect-to-eql.sublime-snippet
  21. +6 −0 Snippets/expect-to-exist.sublime-snippet
  22. +6 −0 Snippets/expect-to-have.sublime-snippet
  23. +6 −0 Snippets/expect-to-have_received.sublime-snippet
  24. +6 −0 Snippets/expect-to-include.sublime-snippet
  25. +6 −0 Snippets/expect-to-match.sublime-snippet
  26. +6 −0 Snippets/expect-to-raise.sublime-snippet
  27. +0 −16 Snippets/expect_be.tmSnippet
  28. +0 −16 Snippets/expect_be_false.tmSnippet
  29. +0 −16 Snippets/expect_be_nil.tmSnippet
  30. +0 −16 Snippets/expect_be_true.tmSnippet
  31. +0 −16 Snippets/expect_eql.tmSnippet
  32. +0 −16 Snippets/expect_exist.tmSnippet
  33. +0 −16 Snippets/expect_have.tmSnippet
  34. +0 −16 Snippets/expect_include.tmSnippet
  35. +0 −16 Snippets/expect_match.tmSnippet
  36. +0 −16 Snippets/expect_raise.tmSnippet
  37. +8 −0 Snippets/it-block.sublime-snippet
  38. +6 −0 Snippets/it-one-line.sublime-snippet
  39. +6 −0 Snippets/it-should-behave-like.sublime-snippet
  40. +0 −16 Snippets/it_should_behave_like.tmSnippet
  41. +3 −3 Snippets/let-memoized_helper-(let).sublime-snippet
  42. +6 −0 Snippets/let_bang-memoized_helper-(let).sublime-snippet
  43. +6 −0 Snippets/pending.sublime-snippet
  44. +0 −16 Snippets/should ==.tmSnippet
  45. +0 −16 Snippets/should =~.tmSnippet
  46. +0 −16 Snippets/should eql.tmSnippet
  47. +0 −16 Snippets/should_be.tmSnippet
  48. +0 −16 Snippets/should_be_a_kind_of.tmSnippet
  49. +0 −16 Snippets/should_be_an_instance_of.tmSnippet
  50. +0 −16 Snippets/should_be_close.tmSnippet
  51. +0 −16 Snippets/should_be_redirect.tmSnippet
  52. +0 −16 Snippets/should_equal.tmSnippet
  53. +0 −16 Snippets/should_have.tmSnippet
  54. +0 −16 Snippets/should_have_at_least.tmSnippet
  55. +0 −16 Snippets/should_have_at_most.tmSnippet
  56. +0 −16 Snippets/should_have_records.tmSnippet
  57. +0 −16 Snippets/should_match.tmSnippet
  58. +0 −16 Snippets/should_not ==.tmSnippet
  59. +0 −16 Snippets/should_not =~.tmSnippet
  60. +0 −16 Snippets/should_not eql.tmSnippet
  61. +0 −16 Snippets/should_not_be.tmSnippet
  62. +0 −16 Snippets/should_not_be_a_kind_of.tmSnippet
  63. +0 −16 Snippets/should_not_be_an_instance_of.tmSnippet
  64. +0 −16 Snippets/should_not_be_close.tmSnippet
  65. +0 −16 Snippets/should_not_be_redirect.tmSnippet
  66. +0 −16 Snippets/should_not_equal.tmSnippet
  67. +0 −16 Snippets/should_not_match.tmSnippet
  68. +0 −16 Snippets/should_not_predicate.tmSnippet
  69. +0 −16 Snippets/should_not_raise.tmSnippet
  70. +0 −16 Snippets/should_not_receive.tmSnippet
  71. +0 −16 Snippets/should_not_respond_to.tmSnippet
  72. +0 −16 Snippets/should_not_satisfy.tmSnippet
  73. +0 −16 Snippets/should_not_throw.tmSnippet
  74. +0 −16 Snippets/should_predicate.tmSnippet
  75. +0 −16 Snippets/should_raise.tmSnippet
  76. +0 −16 Snippets/should_receive.tmSnippet
  77. +0 −16 Snippets/should_receive_with_args.tmSnippet
  78. +0 −16 Snippets/should_redirect_to.tmSnippet
  79. +0 −16 Snippets/should_render.tmSnippet
  80. +0 −16 Snippets/should_respond_to.tmSnippet
  81. +0 −16 Snippets/should_satisfy.tmSnippet
  82. +0 −16 Snippets/should_throw.tmSnippet
  83. +0 −16 Snippets/should_validate_presence_of.tmSnippet
  84. +6 −0 Snippets/subject.sublime-snippet
View
6 Default.sublime-commands
@@ -0,0 +1,6 @@
+[
+ {
+ "caption": "RSpec: open corresponding file",
+ "command": "open_rspec_file"
+ }
+]
View
40 README.md
@@ -1,22 +1,20 @@
-Description
-===========
-[RSpec](http://rspec.info/) is a BDD (Behavioral-Driven Development) testing framework for Ruby. This package adds support to Sublime Text 2 for testing Ruby applications with RSpec.
-
-Package Installation
-====================
-### Mac OSX
- cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
- git clone git://github.com/SublimeText/RSpec.git
-### Linux
- cd ~/.config/sublime-text-2/Packages
- git clone git://github.com/SublimeText/RSpec.git
-### Windows
- cd Users/<user>/AppData/Roaming/Sublime\ Text\ 2/Packages/
- git clone git://github.com/SublimeText/RSpec.git
-
-When you launch Sublime Text 2, it will pick up the contents of this package so that you can consume the goodness that it provides.
-
-Features
-========
-* RSpec.sublime-build for executing unit tests for the active module via the S2 *Build* command
+# RSpec Package for Sublime Text 2/3
+
+## Description
+
+[RSpec](rspec) is a BDD (Behavior-Driven Development) testing framework for Ruby. This package adds support to Sublime Text 2 and 3 for specifying and testing Ruby applications with RSpec. It contains extra syntax highlighting and many snippets.
+
+[rspec]: http://rspec.info/
+
+## Installation
+
+Recommended: install via [Package Control][package-control].
+
+Alternative (especially if you want to develop the package further): Clone (your fork of) the repository into your Sublime Text Pacakges directory.
+
+[package-control]: https://sublime.wbond.net/
+
+## Features
+
+* RSpec.sublime-build for executing unit tests for the active module via the Sublime Text *Build* command
* You must assign the builder for your project to 'Ceedling'
View
9 RSpec.tmLanguage
@@ -52,7 +52,7 @@
<array>
<dict>
<key>match</key>
- <string>(?&lt;!\.)\b(before|after|subject|let)\b(?![?!])</string>
+ <string>(?&lt;!\.)\b(before\b|after\b|subject!?|let!?)</string>
<key>name</key>
<string>keyword.other.rspec</string>
</dict>
@@ -82,12 +82,17 @@
<key>behaviour</key>
<dict>
<key>begin</key>
- <string>^\s*(describe|context|feature)\b</string>
+ <string>^\s*(?:(RSpec)\.)?(describe|context|feature)\b</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
+ <string>support.class.ruby</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
<string>keyword.other.rspec.behaviour</string>
</dict>
</dict>
View
20 Snippets/Describe.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>describe "${1:description}" do
- it "should ${2:description}" do
- $0
- end
-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
4 Snippets/Describe_type.tmSnippet
@@ -4,9 +4,9 @@
<dict>
<key>content</key>
<string>describe ${1:Type} do
- it "should ${2:description}" do
+ ${2:it "${3:does something}" do
$0
- end
+ end}
end</string>
<key>name</key>
<string>describe (type)</string>
View
4 Snippets/Describe_type_string.tmSnippet
@@ -4,9 +4,9 @@
<dict>
<key>content</key>
<string>describe ${1:Type}, "${2:description}" do
- it "should ${3:description}" do
+ ${3:it "${4:does something}" do
$0
- end
+ end}
end</string>
<key>name</key>
<string>describe (type, string)</string>
View
18 Snippets/It.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>it "${1:description}" do
- $0
-end</string>
- <key>name</key>
- <string>it</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
2 Snippets/Require spec_helper.tmSnippet
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>require File.dirname(__FILE__) + '/../spec_helper'</string>
+ <string>require 'spec_helper'</string>
<key>name</key>
<string>Require spec_helper</string>
<key>scope</key>
View
8 Snippets/context.sublime-snippet
@@ -0,0 +1,8 @@
+<snippet>
+ <content><![CDATA[context '${1:description}' do
+ $0
+end]]></content>
+ <tabTrigger>con</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>context 'description' do … end</description>
+</snippet>
View
18 Snippets/context.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>context "${1:description}" do
- $0
-end</string>
- <key>name</key>
- <string>context</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>context</string>
- <key>uuid</key>
- <string>AD51AA2B-09C9-40DE-9720-2FD43C967FA9</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.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
8 Snippets/describe-block.sublime-snippet
@@ -0,0 +1,8 @@
+<snippet>
+ <content><![CDATA[describe "${1:description}" do
+ $0
+end]]></content>
+ <tabTrigger>des</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>describe "description" do … end</description>
+</snippet>
View
6 Snippets/expect-block-to.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[expect {${2: ${1:expression} }}.to ${3:matcher}]]></content>
+ <tabTrigger>expto</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>expect { expression }.to something</description>
+</snippet>
View
6 Snippets/expect-one-line.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[expect(${1:subject}).to ${2:matcher}$0]]></content>
+ <tabTrigger>exp</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>expect(subject).to something</description>
+</snippet>
View
6 Snippets/expect-to-be-close.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[expect(${1:subject}).to be_close(${2:result}, ${3:tolerance})$0]]></content>
+ <tabTrigger>expbc</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>expect(obj).to be_close</description>
+</snippet>
View
6 Snippets/expect-to-be-nil.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[expect(${1:subject}).to be_nil$0]]></content>
+ <tabTrigger>expbn</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>expect(obj).to be_nil</description>
+</snippet>
View
6 Snippets/expect-to-be.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[expect(${1:subject}).to be$0]]></content>
+ <tabTrigger>expbe</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>expect(obj).to be</description>
+</snippet>
View
9 Snippets/expect-to-block.sublime-snippet
@@ -0,0 +1,9 @@
+<snippet>
+ <content><![CDATA[expect do
+ ${1:action}
+end.to ${2:matcher}$0]]>
+</content>
+ <tabTrigger>expdo</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>expect do ... end.to something</description>
+</snippet>
View
6 Snippets/expect-to-eql.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[expect(${1:subject}).to eql(${2:value})$0]]></content>
+ <tabTrigger>expeql</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>expect(obj).to eql(value)</description>
+</snippet>
View
6 Snippets/expect-to-exist.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[expect(${1:subject}).to exist$0]]></content>
+ <tabTrigger>expexist</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>expect(obj).to exist</description>
+</snippet>
View
6 Snippets/expect-to-have.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[expect(${1:subject}).to have(${2:num}).${3:items}$0]]></content>
+ <tabTrigger>exphave</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>expect(obj).to have(num)</description>
+</snippet>
View
6 Snippets/expect-to-have_received.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[expect(${1:collaborator}).to have_received(:${2:message})${3:.with(${4:args})}$0]]></content>
+ <tabTrigger>exprec</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>expect(object).to have_received(message)</description>
+</snippet>
View
6 Snippets/expect-to-include.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[expect(${1:subject}).to include(${2:element})$0]]></content>
+ <tabTrigger>expinclude</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>expect(obj).to include(element)</description>
+</snippet>
View
6 Snippets/expect-to-match.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[expect(${1:subject}).to match(/${2:regexp}/)$0]]></content>
+ <tabTrigger>expmatch</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>expect(obj).to match</description>
+</snippet>
View
6 Snippets/expect-to-raise.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[expect { ${1:action} }.to raise_error(${2:Error})$0]]></content>
+ <tabTrigger>expraise</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>expect { action }.to raise</description>
+</snippet>
View
16 Snippets/expect_be.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>expect(${1:subject}).to be$0</string>
- <key>name</key>
- <string>expect(subject) be</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>be</string>
- <key>uuid</key>
- <string>F401AA03-A119-4965-8677-BDAAE8312F13</string>
-</dict>
-</plist>
View
16 Snippets/expect_be_false.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>expect(${1:subject}).to be_false$0</string>
- <key>name</key>
- <string>expect(subject) be_false</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>bf</string>
- <key>uuid</key>
- <string>F401AA03-A119-4965-8677-BDAAE8312F13</string>
-</dict>
-</plist>
View
16 Snippets/expect_be_nil.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>expect(${1:subject}).to be_nil$0</string>
- <key>name</key>
- <string>expect(subject) be_nil</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>bn</string>
- <key>uuid</key>
- <string>F401AA03-A119-4965-8677-BDAAE8312F13</string>
-</dict>
-</plist>
View
16 Snippets/expect_be_true.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>expect(${1:subject}).to be_true$0</string>
- <key>name</key>
- <string>expect(subject) be_true</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>bt</string>
- <key>uuid</key>
- <string>F401AA03-A119-4965-8677-BDAAE8312F13</string>
-</dict>
-</plist>
View
16 Snippets/expect_eql.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>expect(${1:subject}).to eql(${2:value})$0</string>
- <key>name</key>
- <string>expect eql</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>eql</string>
- <key>uuid</key>
- <string>0F03467B-16F7-4764-99C6-B7F123E95E5C</string>
-</dict>
-</plist>
View
16 Snippets/expect_exist.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>expect(${1:subject}).to exist$0</string>
- <key>name</key>
- <string>expect(subject) exist</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>exist</string>
- <key>uuid</key>
- <string>F401AA03-A119-4965-8677-BDAAE8312F13</string>
-</dict>
-</plist>
View
16 Snippets/expect_have.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>expect(${1:subject}).to have(${2:num}).${3:things}$0</string>
- <key>name</key>
- <string>expect(subject) have</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>have</string>
- <key>uuid</key>
- <string>42B1F497-2BAF-425D-9829-57E35456E7FE</string>
-</dict>
-</plist>
View
16 Snippets/expect_include.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>expect(${1:subject}).to include(${2})$0</string>
- <key>name</key>
- <string>expect(subject) include(element)</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>inc</string>
- <key>uuid</key>
- <string>F401AA03-A119-4965-8677-BDAAE8312F13</string>
-</dict>
-</plist>
View
16 Snippets/expect_match.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>expect(${1:subject}).to match(/${2:regexp}/)$0</string>
- <key>name</key>
- <string>expect(subject) match</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>match</string>
- <key>uuid</key>
- <string>D6CE8D1B-16EC-4E0E-8089-62F193D3D048</string>
-</dict>
-</plist>
View
16 Snippets/expect_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>expect { raise ${1:Error} }.to raise_error(${2:Error})$0</string>
- <key>name</key>
- <string>expect raise_error</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>raise</string>
- <key>uuid</key>
- <string>813263F0-A2C0-465F-A617-69ECBAF8F7DD</string>
-</dict>
-</plist>
View
8 Snippets/it-block.sublime-snippet
@@ -0,0 +1,8 @@
+<snippet>
+ <content><![CDATA[it "${1:does something}" do
+ $0
+end]]></content>
+ <tabTrigger>it</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>it "does something" do … end</description>
+</snippet>
View
6 Snippets/it-one-line.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[it { ${2:should ${1:matcher}} }$0]]></content>
+ <tabTrigger>iti</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>it { should something }</description>
+</snippet>
View
6 Snippets/it-should-behave-like.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[it_should_behave_like ${2:"$1"}$0]]></content>
+ <tabTrigger>itsbl</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>it_should_behave_like</description>
+</snippet>
View
16 Snippets/it_should_behave_like.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>it_should_behave_like ${2:"$1"}$0</string>
- <key>name</key>
- <string>it_should_behave_like</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>itsbl</string>
- <key>uuid</key>
- <string>D13C48F3-C62B-4456-B075-36B424D573CC</string>
-</dict>
-</plist>
View
6 Snippets/let-memoized_helper-(let).sublime-snippet
@@ -1,6 +1,6 @@
<snippet>
- <content><![CDATA[let(:${1:variable_name}) { ${3:${2:ClassName}.new} }]]></content>
+ <content><![CDATA[let(:${1:object}) { $0 }]]></content>
<tabTrigger>let</tabTrigger>
<scope>source.ruby.rspec</scope>
- <description>let - Rspec memoized helper</description>
-</snippet>
+ <description>let(:object) { }</description>
+</snippet>
View
6 Snippets/let_bang-memoized_helper-(let).sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[let!(:${1:object}) { $0 }]]></content>
+ <tabTrigger>letb</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>let!(:object) { }</description>
+</snippet>
View
6 Snippets/pending.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[pending${1: "${2:reason}"}]]></content>
+ <tabTrigger>pending</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>pending</description>
+</snippet>
View
16 Snippets/should ==.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>${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
16 Snippets/should =~.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>${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
16 Snippets/should eql.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>${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
16 Snippets/should_be.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>${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
16 Snippets/should_be_a_kind_of.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>${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
16 Snippets/should_be_an_instance_of.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>${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
16 Snippets/should_be_close.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>${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
16 Snippets/should_be_redirect.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>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
16 Snippets/should_equal.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>${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
16 Snippets/should_have.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>${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
16 Snippets/should_have_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>${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
16 Snippets/should_have_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>${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
16 Snippets/should_have_records.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>${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
16 Snippets/should_match.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>${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
16 Snippets/should_not ==.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>${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
16 Snippets/should_not =~.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>${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
16 Snippets/should_not eql.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>${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
16 Snippets/should_not_be.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>${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
16 Snippets/should_not_be_a_kind_of.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>${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
16 Snippets/should_not_be_an_instance_of.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>${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
16 Snippets/should_not_be_close.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>${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
16 Snippets/should_not_be_redirect.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>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
16 Snippets/should_not_equal.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>${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
16 Snippets/should_not_match.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>${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
16 Snippets/should_not_predicate.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>${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
16 Snippets/should_not_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>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
16 Snippets/should_not_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}${1/^.+$/./}should_not_receive(:${2:message})</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
16 Snippets/should_not_respond_to.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>${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
16 Snippets/should_not_satisfy.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>${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
16 Snippets/should_not_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>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
16 Snippets/should_predicate.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>${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
16 Snippets/should_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>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}${1/^.+$/./}should_receive(:${2:message})</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:args})</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
16 Snippets/should_redirect_to.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>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
16 Snippets/should_render.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>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
16 Snippets/should_respond_to.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>${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
16 Snippets/should_satisfy.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>${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
16 Snippets/should_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>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/should_validate_presence_of.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>it { should validate_presence_of :$0 }</string>
- <key>name</key>
- <string>and_return with args</string>
- <key>scope</key>
- <string>source.ruby.rspec</string>
- <key>tabTrigger</key>
- <string>vp</string>
- <key>uuid</key>
- <string>9aacecfc-4c45-4bbd-aa90-5a21a50a3743</string>
- </dict>
-</plist>
View
6 Snippets/subject.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[subject(:${1:subject}) { ${3:${2:ClassName}.new} }]]></content>
+ <tabTrigger>subject</tabTrigger>
+ <scope>source.ruby.rspec</scope>
+ <description>subject - Rspec subject helper</description>
+</snippet>

0 comments on commit 4d19364

Please sign in to comment.