Skip to content

Commit

Permalink
Merge pull request #62 from SDEagle/magic_subject
Browse files Browse the repository at this point in the history
have subject automatically remove brackets and : if no symbol supplied
  • Loading branch information
princemaple committed Oct 3, 2015
2 parents 221c1c6 + afc6e33 commit 3609da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Snippets/subject.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[subject(:${1:subject}) { ${3:${2:described_class}.new${4:($5)}} }]]></content>
<content><![CDATA[subject${1/(^.+$)|^$/(?1:\(\:)/}${1:subject}${1/(^.+$)|^$/(?1:\)/} { ${3:${2:described_class}.new${4:($5)}} }]]></content>
<tabTrigger>subject</tabTrigger>
<scope>source.ruby.rspec</scope>
<description>subject(:subject) { described_class.new }</description>
Expand Down

0 comments on commit 3609da4

Please sign in to comment.