Skip to content

Commit 6df2d64

Browse files
aaronliftonprincemaple
authored andcommitted
add be_a_new and expect_to_have_content snippets
1 parent 02f4d00 commit 6df2d64

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<snippet>
2-
<content><![CDATA[expect(${1:subject}).to have_content(${2:content})$0]]></content>
3-
<tabTrigger>exphc</tabTrigger>
4-
<scope>source.ruby.rspec</scope>
5-
<description>expect(object).to have_content(content)</description>
2+
<content><![CDATA[expect(${1:subject}).to have_content(${2:content})$0]]></content>
3+
<tabTrigger>exphc</tabTrigger>
4+
<scope>source.ruby.rspec</scope>
5+
<description>expect(object).to have_content(content)</description>
66
</snippet>

Snippets/expect_be_a_new.tmSnippet

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>content</key>
6+
<string>expect(${1:subject}).to be_a_new(${2:klass})$0</string>
7+
<key>name</key>
8+
<string>expect(subject) be_a_new</string>
9+
<key>scope</key>
10+
<string>source.ruby.rspec</string>
11+
<key>tabTrigger</key>
12+
<string>bio</string>
13+
<key>uuid</key>
14+
<string>66831850-B78F-4390-8880-991C0D001BDA</string>
15+
</dict>
16+
</plist>

0 commit comments

Comments
 (0)