Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Snippets for RSpec's New Expectation Syntax #18

Merged
merged 4 commits into from

2 participants

@osrocha

No description provided.

@barneywilliams

Thanks for reverting that ;)

@barneywilliams

Oops! That is a bad copy-n-paste from my Ceedling package. I will fix that after the merge.

@barneywilliams

Thanks for the great updates! Good stuff!

@barneywilliams barneywilliams merged commit e28b0e2 into SublimeText:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 584 additions and 79 deletions.
  1. +1 −1  README.md
  2. +16 −0 Snippets/expect_be.tmSnippet
  3. +16 −0 Snippets/expect_be_a_kind_of.tmSnippet
  4. +16 −0 Snippets/expect_be_an_instance_of.tmSnippet
  5. +16 −0 Snippets/expect_be_false.tmSnippet
  6. +16 −0 Snippets/expect_be_nil.tmSnippet
  7. +16 −0 Snippets/expect_be_predicated_method.tmSnippet
  8. +16 −0 Snippets/expect_be_true.tmSnippet
  9. +16 −0 Snippets/expect_eql.tmSnippet
  10. +16 −0 Snippets/expect_equal.tmSnippet
  11. +16 −0 Snippets/expect_exist.tmSnippet
  12. +16 −0 Snippets/expect_have.tmSnippet
  13. +16 −0 Snippets/expect_have_at_least.tmSnippet
  14. +16 −0 Snippets/expect_have_at_most.tmSnippet
  15. +16 −0 Snippets/expect_have_exactly.tmSnippet
  16. +16 −0 Snippets/expect_include.tmSnippet
  17. +16 −0 Snippets/expect_match.tmSnippet
  18. +16 −0 Snippets/expect_not_be.tmSnippet
  19. +16 −0 Snippets/expect_not_be_a_kind_of.tmSnippet
  20. +16 −0 Snippets/expect_not_be_an_instance_of.tmSnippet
  21. +16 −0 Snippets/expect_not_be_nil.tmSnippet
  22. +16 −0 Snippets/expect_not_be_predicated_method.tmSnippet
  23. +16 −0 Snippets/expect_not_eql.tmSnippet
  24. +16 −0 Snippets/expect_not_equal.tmSnippet
  25. +16 −0 Snippets/expect_not_exist.tmSnippet
  26. +16 −0 Snippets/expect_not_include.tmSnippet
  27. +16 −0 Snippets/expect_not_match.tmSnippet
  28. +16 −0 Snippets/expect_not_raise.tmSnippet
  29. +16 −0 Snippets/expect_not_respond_to.tmSnippet
  30. +16 −0 Snippets/expect_not_satisfy.tmSnippet
  31. +16 −0 Snippets/expect_not_throw.tmSnippet
  32. +16 −0 Snippets/expect_raise.tmSnippet
  33. +16 −0 Snippets/expect_respond_to.tmSnippet
  34. +16 −0 Snippets/expect_satisfy.tmSnippet
  35. +16 −0 Snippets/expect_throw.tmSnippet
  36. +1 −2  Snippets/mock.tmSnippet
  37. +1 −2  Snippets/response_should_be_success.tmSnippet
  38. +1 −2  Snippets/response_should_not_be_success.tmSnippet
  39. +1 −2  Snippets/should ==.tmSnippet
  40. +1 −2  Snippets/should =~.tmSnippet
  41. +1 −2  Snippets/should eql.tmSnippet
  42. +1 −2  Snippets/should_be.tmSnippet
  43. +1 −2  Snippets/should_be_a_kind_of.tmSnippet
  44. +1 −2  Snippets/should_be_an_instance_of.tmSnippet
  45. +1 −2  Snippets/should_be_close.tmSnippet
  46. +1 −2  Snippets/should_be_redirect.tmSnippet
  47. +1 −2  Snippets/should_equal.tmSnippet
  48. +1 −2  Snippets/should_have.tmSnippet
  49. +1 −2  Snippets/should_have_at_least.tmSnippet
  50. +1 −2  Snippets/should_have_at_most.tmSnippet
  51. +1 −2  Snippets/should_have_records.tmSnippet
  52. +1 −2  Snippets/should_match.tmSnippet
  53. +1 −2  Snippets/should_not ==.tmSnippet
  54. +1 −2  Snippets/should_not =~.tmSnippet
  55. +1 −2  Snippets/should_not eql.tmSnippet
  56. +1 −2  Snippets/should_not_be.tmSnippet
  57. +1 −2  Snippets/should_not_be_a_kind_of.tmSnippet
  58. +1 −2  Snippets/should_not_be_an_instance_of.tmSnippet
  59. +1 −2  Snippets/should_not_be_close.tmSnippet
  60. +1 −2  Snippets/should_not_be_redirect.tmSnippet
  61. +1 −2  Snippets/should_not_equal.tmSnippet
  62. +1 −2  Snippets/should_not_match.tmSnippet
  63. +1 −2  Snippets/should_not_predicate.tmSnippet
  64. +1 −2  Snippets/should_not_raise.tmSnippet
  65. +1 −2  Snippets/should_not_respond_to.tmSnippet
  66. +1 −2  Snippets/should_not_satisfy.tmSnippet
  67. +1 −2  Snippets/should_not_throw.tmSnippet
  68. +1 −2  Snippets/should_predicate.tmSnippet
  69. +1 −2  Snippets/should_raise.tmSnippet
  70. +1 −2  Snippets/should_redirect_to.tmSnippet
  71. +1 −2  Snippets/should_render.tmSnippet
  72. +1 −2  Snippets/should_respond_to.tmSnippet
  73. +1 −2  Snippets/should_satisfy.tmSnippet
  74. +1 −2  Snippets/should_throw.tmSnippet
View
2  README.md
@@ -12,4 +12,4 @@ When you launch Sublime Text 2, it will pick up the contents of this package so
Features
========
* RSpec.sublime-build for executing unit tests for the active module via the S2 *Build* command
- * You must assign the builder for your project to 'Ceedling'
+ * You must assign the builder for your project to 'Ceedling'
View
16 Snippets/expect_be.tmSnippet
@@ -0,0 +1,16 @@
+<?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_a_kind_of.tmSnippet
@@ -0,0 +1,16 @@
+<?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_a_kind_of(${2:klass})$0</string>
+ <key>name</key>
+ <string>expect(subject) be_a_kind_of</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>bko</string>
+ <key>uuid</key>
+ <string>29BF3286-6D33-418D-9BD5-79BAB0797FE4</string>
+</dict>
+</plist>
View
16 Snippets/expect_be_an_instance_of.tmSnippet
@@ -0,0 +1,16 @@
+<?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_an_instance_of(${2:klass})$0</string>
+ <key>name</key>
+ <string>expect(subject) be_an_instance_of</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>bio</string>
+ <key>uuid</key>
+ <string>8C5B6597-E115-4569-AE58-EF04042B21CD</string>
+</dict>
+</plist>
View
16 Snippets/expect_be_false.tmSnippet
@@ -0,0 +1,16 @@
+<?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
@@ -0,0 +1,16 @@
+<?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_predicated_method.tmSnippet
@@ -0,0 +1,16 @@
+<?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_${2:predicated_method}$0</string>
+ <key>name</key>
+ <string>expect(subject) be_{predicated_method}</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>bpm</string>
+ <key>uuid</key>
+ <string>F401AA03-A119-4965-8677-BDAAE8312F13</string>
+</dict>
+</plist>
View
16 Snippets/expect_be_true.tmSnippet
@@ -0,0 +1,16 @@
+<?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
@@ -0,0 +1,16 @@
+<?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_equal.tmSnippet
@@ -0,0 +1,16 @@
+<?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 equal(${2:value})$0</string>
+ <key>name</key>
+ <string>expect equal</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>equal</string>
+ <key>uuid</key>
+ <string>0F03467B-16F7-4764-99C6-B7F123E95E5C</string>
+</dict>
+</plist>
View
16 Snippets/expect_exist.tmSnippet
@@ -0,0 +1,16 @@
+<?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
@@ -0,0 +1,16 @@
+<?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_have_at_least.tmSnippet
@@ -0,0 +1,16 @@
+<?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_at_least(${2:num}).${3:things}$0</string>
+ <key>name</key>
+ <string>expect(subject) have_at_least</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>hat</string>
+ <key>uuid</key>
+ <string>42B1F497-2BAF-425D-9829-57E35456E7FE</string>
+</dict>
+</plist>
View
16 Snippets/expect_have_at_most.tmSnippet
@@ -0,0 +1,16 @@
+<?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_at_most(${2:num}).${3:things}$0</string>
+ <key>name</key>
+ <string>expect(subject) have_at_most</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>ham</string>
+ <key>uuid</key>
+ <string>42B1F497-2BAF-425D-9829-57E35456E7FE</string>
+</dict>
+</plist>
View
16 Snippets/expect_have_exactly.tmSnippet
@@ -0,0 +1,16 @@
+<?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_exactly(${2:num}).${3:things}$0</string>
+ <key>name</key>
+ <string>expect(subject) have_exactly</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>he</string>
+ <key>uuid</key>
+ <string>42B1F497-2BAF-425D-9829-57E35456E7FE</string>
+</dict>
+</plist>
View
16 Snippets/expect_include.tmSnippet
@@ -0,0 +1,16 @@
+<?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
@@ -0,0 +1,16 @@
+<?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_not_be.tmSnippet
@@ -0,0 +1,16 @@
+<?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}).not_to be$0</string>
+ <key>name</key>
+ <string>expect(subject) not be</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>nbe</string>
+ <key>uuid</key>
+ <string>F401AA03-A119-4965-8677-BDAAE8312F13</string>
+</dict>
+</plist>
View
16 Snippets/expect_not_be_a_kind_of.tmSnippet
@@ -0,0 +1,16 @@
+<?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}).not_to be_a_kind_of(${2:klass})$0</string>
+ <key>name</key>
+ <string>expect(subject) not be_a_kind_of</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>nbko</string>
+ <key>uuid</key>
+ <string>29BF3286-6D33-418D-9BD5-79BAB0797FE4</string>
+</dict>
+</plist>
View
16 Snippets/expect_not_be_an_instance_of.tmSnippet
@@ -0,0 +1,16 @@
+<?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}).not_to be_an_instance_of(${2:klass})$0</string>
+ <key>name</key>
+ <string>expect(subject) not be_an_instance_of</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>nbio</string>
+ <key>uuid</key>
+ <string>8C5B6597-E115-4569-AE58-EF04042B21CD</string>
+</dict>
+</plist>
View
16 Snippets/expect_not_be_nil.tmSnippet
@@ -0,0 +1,16 @@
+<?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}).not_to be_nil$0</string>
+ <key>name</key>
+ <string>expect(subject) not be_nil</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>nbn</string>
+ <key>uuid</key>
+ <string>F401AA03-A119-4965-8677-BDAAE8312F13</string>
+</dict>
+</plist>
View
16 Snippets/expect_not_be_predicated_method.tmSnippet
@@ -0,0 +1,16 @@
+<?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}).not_to be_${2:predicated_method}$0</string>
+ <key>name</key>
+ <string>expect(subject) not be_{predicated_method}</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>nbpm</string>
+ <key>uuid</key>
+ <string>F401AA03-A119-4965-8677-BDAAE8312F13</string>
+</dict>
+</plist>
View
16 Snippets/expect_not_eql.tmSnippet
@@ -0,0 +1,16 @@
+<?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}).not_to eql(${2:value})$0</string>
+ <key>name</key>
+ <string>expect not eql</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>neql</string>
+ <key>uuid</key>
+ <string>0F03467B-16F7-4764-99C6-B7F123E95E5C</string>
+</dict>
+</plist>
View
16 Snippets/expect_not_equal.tmSnippet
@@ -0,0 +1,16 @@
+<?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}).not_to equal(${2:value})$0</string>
+ <key>name</key>
+ <string>expect not equal</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>nequal</string>
+ <key>uuid</key>
+ <string>0F03467B-16F7-4764-99C6-B7F123E95E5C</string>
+</dict>
+</plist>
View
16 Snippets/expect_not_exist.tmSnippet
@@ -0,0 +1,16 @@
+<?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}).not_to exist$0</string>
+ <key>name</key>
+ <string>expect(subject) not exist</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>nexist</string>
+ <key>uuid</key>
+ <string>F401AA03-A119-4965-8677-BDAAE8312F13</string>
+</dict>
+</plist>
View
16 Snippets/expect_not_include.tmSnippet
@@ -0,0 +1,16 @@
+<?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}).not_to include(${2})$0</string>
+ <key>name</key>
+ <string>expect(subject) not include(element)</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>ninc</string>
+ <key>uuid</key>
+ <string>F401AA03-A119-4965-8677-BDAAE8312F13</string>
+</dict>
+</plist>
View
16 Snippets/expect_not_match.tmSnippet
@@ -0,0 +1,16 @@
+<?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}).not_to match(/${2:regexp}/)$0</string>
+ <key>name</key>
+ <string>expect(subject) not match</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>nmatch</string>
+ <key>uuid</key>
+ <string>D6CE8D1B-16EC-4E0E-8089-62F193D3D048</string>
+</dict>
+</plist>
View
16 Snippets/expect_not_raise.tmSnippet
@@ -0,0 +1,16 @@
+<?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} }.not_to raise_error(${2:Error})$0</string>
+ <key>name</key>
+ <string>expect not raise_error</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>nraise</string>
+ <key>uuid</key>
+ <string>813263F0-A2C0-465F-A617-69ECBAF8F7DD</string>
+</dict>
+</plist>
View
16 Snippets/expect_not_respond_to.tmSnippet
@@ -0,0 +1,16 @@
+<?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}).not_to respond_to(:${2:method})$0</string>
+ <key>name</key>
+ <string>expect(subject) not respond_to</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>nrt</string>
+ <key>uuid</key>
+ <string>D139CA8C-AACC-4314-AB86-BB3021D31B12</string>
+</dict>
+</plist>
View
16 Snippets/expect_not_satisfy.tmSnippet
@@ -0,0 +1,16 @@
+<?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}).not_to satisfy { |${2:obj}| ${3:expression} }$0</string>
+ <key>name</key>
+ <string>expect(subject) not satisfy</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>nsat</string>
+ <key>uuid</key>
+ <string>3FF9AC90-799D-4BFD-8203-58199A1AD429</string>
+</dict>
+</plist>
View
16 Snippets/expect_not_throw.tmSnippet
@@ -0,0 +1,16 @@
+<?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 { throw $1 }.to_not throw_symbol(:${2:symbol})$0</string>
+ <key>name</key>
+ <string>expect not throw</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>nthr</string>
+ <key>uuid</key>
+ <string>C41E8AD6-00F5-44E7-9809-F79666FE79F0</string>
+</dict>
+</plist>
View
16 Snippets/expect_raise.tmSnippet
@@ -0,0 +1,16 @@
+<?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
16 Snippets/expect_respond_to.tmSnippet
@@ -0,0 +1,16 @@
+<?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 respond_to(:${2:method})$0</string>
+ <key>name</key>
+ <string>expect(subject) respond_to</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>rt</string>
+ <key>uuid</key>
+ <string>D139CA8C-AACC-4314-AB86-BB3021D31B12</string>
+</dict>
+</plist>
View
16 Snippets/expect_satisfy.tmSnippet
@@ -0,0 +1,16 @@
+<?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 satisfy { |${2:obj}| ${3:expression} }$0</string>
+ <key>name</key>
+ <string>expect(subject) satisfy</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>sat</string>
+ <key>uuid</key>
+ <string>3FF9AC90-799D-4BFD-8203-58199A1AD429</string>
+</dict>
+</plist>
View
16 Snippets/expect_throw.tmSnippet
@@ -0,0 +1,16 @@
+<?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 { throw $1 }.to throw_symbol(:${2:symbol})$0</string>
+ <key>name</key>
+ <string>expect throw</string>
+ <key>scope</key>
+ <string>source.ruby.rspec</string>
+ <key>tabTrigger</key>
+ <string>thr</string>
+ <key>uuid</key>
+ <string>C41E8AD6-00F5-44E7-9809-F79666FE79F0</string>
+</dict>
+</plist>
View
3  Snippets/mock.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:var} = mock("${2:mock_name}"${3:, :null_object =&gt; true})
-$0</string>
+ <string>${1:var} = mock("${2:mock_name}"${3:, :null_object =&gt; true})$0</string>
<key>name</key>
<string>mock</string>
<key>scope</key>
View
3  Snippets/response_should_be_success.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>response.should be_success
-$0</string>
+ <string>response.should be_success$0</string>
<key>name</key>
<string>should be_success</string>
<key>scope</key>
View
3  Snippets/response_should_not_be_success.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>response.should_not be_success
-$0</string>
+ <string>response.should_not be_success$0</string>
<key>name</key>
<string>should_not be_success</string>
<key>scope</key>
View
3  Snippets/should ==.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should == ${2:value}
-$0</string>
+ <string>${1:target}.should == ${2:value}$0</string>
<key>name</key>
<string>should ==</string>
<key>scope</key>
View
3  Snippets/should =~.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should =~ /${2:regexp}/
-$0</string>
+ <string>${1:target}.should =~ /${2:regexp}/$0</string>
<key>name</key>
<string>should =~</string>
<key>scope</key>
View
3  Snippets/should eql.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should eql(${2:value})
-$0</string>
+ <string>${1:target}.should eql(${2:value})$0</string>
<key>name</key>
<string>should eql</string>
<key>scope</key>
View
3  Snippets/should_be.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should be(${2:result})
-$0</string>
+ <string>${1:target}.should be(${2:result})$0</string>
<key>name</key>
<string>should be</string>
<key>scope</key>
View
3  Snippets/should_be_a_kind_of.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should be_a_kind_of(${2:klass})
-$0</string>
+ <string>${1:target}.should be_a_kind_of(${2:klass})$0</string>
<key>name</key>
<string>should be_kind_of</string>
<key>scope</key>
View
3  Snippets/should_be_an_instance_of.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should be_instance_of(${2:klass})
-$0</string>
+ <string>${1:target}.should be_instance_of(${2:klass})$0</string>
<key>name</key>
<string>should be_instance_of</string>
<key>scope</key>
View
3  Snippets/should_be_close.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should be_close(${2:result}, ${3:tolerance})
-$0</string>
+ <string>${1:target}.should be_close(${2:result}, ${3:tolerance})$0</string>
<key>name</key>
<string>should be_close</string>
<key>scope</key>
View
3  Snippets/should_be_redirect.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>response.should be_redirect
-$0</string>
+ <string>response.should be_redirect$0</string>
<key>name</key>
<string>should be_redirect</string>
<key>scope</key>
View
3  Snippets/should_equal.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should equal(${2:value})
-$0</string>
+ <string>${1:target}.should equal(${2:value})$0</string>
<key>name</key>
<string>should equal</string>
<key>scope</key>
View
3  Snippets/should_have.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should have(${2:num}).${3:things}
-$0</string>
+ <string>${1:target}.should have(${2:num}).${3:things}$0</string>
<key>name</key>
<string>should have</string>
<key>scope</key>
View
3  Snippets/should_have_at_least.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should have_at_least(${2:num}).${3:things}
-$0</string>
+ <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>
View
3  Snippets/should_have_at_most.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should have_at_most(${2:num}).${3:things}
-$0</string>
+ <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>
View
3  Snippets/should_have_records.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should have(${2:x}).records
-$0</string>
+ <string>${1:target}.should have(${2:x}).records$0</string>
<key>name</key>
<string>should have_records</string>
<key>scope</key>
View
3  Snippets/should_match.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should match(/${2:regexp}/)
-$0</string>
+ <string>${1:target}.should match(/${2:regexp}/)$0</string>
<key>name</key>
<string>should match</string>
<key>scope</key>
View
3  Snippets/should_not ==.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should_not == ${2:value}
-$0</string>
+ <string>${1:target}.should_not == ${2:value}$0</string>
<key>name</key>
<string>should_not ==</string>
<key>scope</key>
View
3  Snippets/should_not =~.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should_not =~ /${2:regexp}/
-$0</string>
+ <string>${1:target}.should_not =~ /${2:regexp}/$0</string>
<key>name</key>
<string>should_not =~</string>
<key>scope</key>
View
3  Snippets/should_not eql.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should_not eql(${2:value})
-$0</string>
+ <string>${1:target}.should_not eql(${2:value})$0</string>
<key>name</key>
<string>should_not eql</string>
<key>scope</key>
View
3  Snippets/should_not_be.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should_not be(${2:result})
-$0</string>
+ <string>${1:target}.should_not be(${2:result})$0</string>
<key>name</key>
<string>should_not be</string>
<key>scope</key>
View
3  Snippets/should_not_be_a_kind_of.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should_not be_a_kind_of(${2:klass})
-$0</string>
+ <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>
View
3  Snippets/should_not_be_an_instance_of.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should_not be_instance_of(${2:klass})
-$0</string>
+ <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>
View
3  Snippets/should_not_be_close.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should_not be_close(${2:result}, ${3:tolerance})
-$0</string>
+ <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>
View
3  Snippets/should_not_be_redirect.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>response.should_not be_redirect
-$0</string>
+ <string>response.should_not be_redirect$0</string>
<key>name</key>
<string>should_not be_redirect</string>
<key>scope</key>
View
3  Snippets/should_not_equal.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should_not equal(${2:value})
-$0</string>
+ <string>${1:target}.should_not equal(${2:value})$0</string>
<key>name</key>
<string>should_not equal</string>
<key>scope</key>
View
3  Snippets/should_not_match.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should_not match(/${2:regexp}/)
-$0</string>
+ <string>${1:target}.should_not match(/${2:regexp}/)$0</string>
<key>name</key>
<string>should_not match</string>
<key>scope</key>
View
3  Snippets/should_not_predicate.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should_not ${2:be_${3:predicate}} $4
-$0</string>
+ <string>${1:target}.should_not ${2:be_${3:predicate}} $4$0</string>
<key>name</key>
<string>should_not predicate</string>
<key>scope</key>
View
3  Snippets/should_not_raise.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>lambda { $1 }.should_not raise_error(${2:error})
-$0</string>
+ <string>lambda { $1 }.should_not raise_error(${2:error})$0</string>
<key>name</key>
<string>should_not raise_error</string>
<key>scope</key>
View
3  Snippets/should_not_respond_to.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should_not respond_to(:${2:sym})
-$0</string>
+ <string>${1:target}.should_not respond_to(:${2:sym})$0</string>
<key>name</key>
<string>should_not respond_to</string>
<key>scope</key>
View
3  Snippets/should_not_satisfy.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should_not satisfy { |obj| $2 }
-$0</string>
+ <string>${1:target}.should_not satisfy { |obj| $2 }$0</string>
<key>name</key>
<string>should_not satisfy</string>
<key>scope</key>
View
3  Snippets/should_not_throw.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>lambda { $1 }.should_not throw_symbol(:${2:symbol})
-$0</string>
+ <string>lambda { $1 }.should_not throw_symbol(:${2:symbol})$0</string>
<key>name</key>
<string>should_not throw</string>
<key>scope</key>
View
3  Snippets/should_predicate.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should ${2:be_${3:predicate}} $4
-$0</string>
+ <string>${1:target}.should ${2:be_${3:predicate}} $4$0</string>
<key>name</key>
<string>should predicate</string>
<key>scope</key>
View
3  Snippets/should_raise.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>lambda { $1 }.should raise_error(${2:error})
-$0</string>
+ <string>lambda { $1 }.should raise_error(${2:error})$0</string>
<key>name</key>
<string>should raise_error</string>
<key>scope</key>
View
3  Snippets/should_redirect_to.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>response.should redirect_to(${1:url})
-$0</string>
+ <string>response.should redirect_to(${1:url})$0</string>
<key>name</key>
<string>should redirect_to</string>
<key>scope</key>
View
3  Snippets/should_render.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>response.should render_template(:${1:template})
-$0</string>
+ <string>response.should render_template(:${1:template})$0</string>
<key>name</key>
<string>should render_template</string>
<key>scope</key>
View
3  Snippets/should_respond_to.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should respond_to(:${2:sym})
-$0</string>
+ <string>${1:target}.should respond_to(:${2:sym})$0</string>
<key>name</key>
<string>should respond_to</string>
<key>scope</key>
View
3  Snippets/should_satisfy.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>${1:target}.should satisfy { |obj| $2 }
-$0</string>
+ <string>${1:target}.should satisfy { |obj| $2 }$0</string>
<key>name</key>
<string>should satisfy</string>
<key>scope</key>
View
3  Snippets/should_throw.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>lambda { $1 }.should throw_symbol(:${2:symbol})
-$0</string>
+ <string>lambda { $1 }.should throw_symbol(:${2:symbol})$0</string>
<key>name</key>
<string>should throw</string>
<key>scope</key>
Something went wrong with that request. Please try again.