Permalink
Browse files

Shorten `expect` tab triggers and tweak some doc lines

  • Loading branch information...
1 parent c133392 commit ea97e38d193b32021bd3dada11d5255f1947fc6d @ashmoran ashmoran committed Nov 26, 2013
View
4 Snippets/expect-to-be-close.sublime-snippet
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[expect(${1:subject}).to be_close(${2:result}, ${3:tolerance})$0]]></content>
- <tabTrigger>expbeclose</tabTrigger>
+ <tabTrigger>expbc</tabTrigger>
<scope>source.ruby.rspec</scope>
- <description>expect(obj) be_close</description>
+ <description>expect(obj).to be_close</description>
</snippet>
View
4 Snippets/expect-to-be-nil.sublime-snippet
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[expect(${1:subject}).to be_nil$0]]></content>
- <tabTrigger>expbenil</tabTrigger>
+ <tabTrigger>expbn</tabTrigger>
<scope>source.ruby.rspec</scope>
- <description>expect(obj) be_nil</description>
+ <description>expect(obj).to be_nil</description>
</snippet>
View
2 Snippets/expect-to-be.sublime-snippet
@@ -2,5 +2,5 @@
<content><![CDATA[expect(${1:subject}).to be$0]]></content>
<tabTrigger>expbe</tabTrigger>
<scope>source.ruby.rspec</scope>
- <description>expect(obj) be</description>
+ <description>expect(obj).to be</description>
</snippet>
View
2 Snippets/expect-to-eql.sublime-snippet
@@ -2,5 +2,5 @@
<content><![CDATA[expect(${1:subject}).to eql(${2:value})$0]]></content>
<tabTrigger>expeql</tabTrigger>
<scope>source.ruby.rspec</scope>
- <description>expect(obj) eql(value)</description>
+ <description>expect(obj).to eql(value)</description>
</snippet>
View
2 Snippets/expect-to-exist.sublime-snippet
@@ -2,5 +2,5 @@
<content><![CDATA[expect(${1:subject}).to exist$0]]></content>
<tabTrigger>expexist</tabTrigger>
<scope>source.ruby.rspec</scope>
- <description>expect(obj) exist</description>
+ <description>expect(obj).to exist</description>
</snippet>
View
2 Snippets/expect-to-have.sublime-snippet
@@ -2,5 +2,5 @@
<content><![CDATA[expect(${1:subject}).to have(${2:num}).${3:items}$0]]></content>
<tabTrigger>exphave</tabTrigger>
<scope>source.ruby.rspec</scope>
- <description>expect(obj) have(num)</description>
+ <description>expect(obj).to have(num)</description>
</snippet>
View
2 Snippets/expect-to-include.sublime-snippet
@@ -2,5 +2,5 @@
<content><![CDATA[expect(${1:subject}).to include(${2:element})$0]]></content>
<tabTrigger>expinclude</tabTrigger>
<scope>source.ruby.rspec</scope>
- <description>expect(obj) include(element)</description>
+ <description>expect(obj).to include(element)</description>
</snippet>
View
2 Snippets/expect-to-match.sublime-snippet
@@ -2,5 +2,5 @@
<content><![CDATA[expect(${1:subject}).to match(/${2:regexp}/)$0]]></content>
<tabTrigger>expmatch</tabTrigger>
<scope>source.ruby.rspec</scope>
- <description>expect(obj) match</description>
+ <description>expect(obj).to match</description>
</snippet>
View
2 Snippets/expect-to-raise.sublime-snippet
@@ -2,5 +2,5 @@
<content><![CDATA[expect { ${1:action} }.to raise_error(${2:Error})$0]]></content>
<tabTrigger>expraise</tabTrigger>
<scope>source.ruby.rspec</scope>
- <description>expect { action } raise</description>
+ <description>expect { action }.to raise</description>
</snippet>

0 comments on commit ea97e38

Please sign in to comment.