Skip to content
Browse files

Was added EXPECT() notation for main snippets

  • Loading branch information...
1 parent b857707 commit 1cc917f5858bb83e8fdd5ee888503e4291f677f8 @osrocha osrocha committed Dec 13, 2012
Showing with 544 additions and 0 deletions.
  1. +16 −0 Snippets/expect_be.tmSnippet
  2. +16 −0 Snippets/expect_be_a_kind_of.tmSnippet
  3. +16 −0 Snippets/expect_be_an_instance_of.tmSnippet
  4. +16 −0 Snippets/expect_be_false.tmSnippet
  5. +16 −0 Snippets/expect_be_nil.tmSnippet
  6. +16 −0 Snippets/expect_be_predicated_method.tmSnippet
  7. +16 −0 Snippets/expect_be_true.tmSnippet
  8. +16 −0 Snippets/expect_eql.tmSnippet
  9. +16 −0 Snippets/expect_equal.tmSnippet
  10. +16 −0 Snippets/expect_exist.tmSnippet
  11. +16 −0 Snippets/expect_have.tmSnippet
  12. +16 −0 Snippets/expect_have_at_least.tmSnippet
  13. +16 −0 Snippets/expect_have_at_most.tmSnippet
  14. +16 −0 Snippets/expect_have_exactly.tmSnippet
  15. +16 −0 Snippets/expect_include.tmSnippet
  16. +16 −0 Snippets/expect_match.tmSnippet
  17. +16 −0 Snippets/expect_not_be.tmSnippet
  18. +16 −0 Snippets/expect_not_be_a_kind_of.tmSnippet
  19. +16 −0 Snippets/expect_not_be_an_instance_of.tmSnippet
  20. +16 −0 Snippets/expect_not_be_nil.tmSnippet
  21. +16 −0 Snippets/expect_not_be_predicated_method.tmSnippet
  22. +16 −0 Snippets/expect_not_eql.tmSnippet
  23. +16 −0 Snippets/expect_not_equal.tmSnippet
  24. +16 −0 Snippets/expect_not_exist.tmSnippet
  25. +16 −0 Snippets/expect_not_include.tmSnippet
  26. +16 −0 Snippets/expect_not_match.tmSnippet
  27. +16 −0 Snippets/expect_not_raise.tmSnippet
  28. +16 −0 Snippets/expect_not_respond_to.tmSnippet
  29. +16 −0 Snippets/expect_not_satisfy.tmSnippet
  30. +16 −0 Snippets/expect_not_throw.tmSnippet
  31. +16 −0 Snippets/expect_raise.tmSnippet
  32. +16 −0 Snippets/expect_respond_to.tmSnippet
  33. +16 −0 Snippets/expect_satisfy.tmSnippet
  34. +16 −0 Snippets/expect_throw.tmSnippet
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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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:target}).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>

0 comments on commit 1cc917f

Please sign in to comment.
Something went wrong with that request. Please try again.