From 576063eb676d8c75e35f37971ca9affc821121bf Mon Sep 17 00:00:00 2001 From: Iuri Fernandes Date: Tue, 5 Feb 2013 10:02:29 -0300 Subject: [PATCH] Add more rspec snippets. --- snippets/ruby.snippets | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/snippets/ruby.snippets b/snippets/ruby.snippets index 0500aaa..a93b239 100644 --- a/snippets/ruby.snippets +++ b/snippets/ruby.snippets @@ -910,6 +910,8 @@ snippet it snippet itp it "${1:spec_name}" ${2} +snippet its + its(:${1:method}) { should ${2} } snippet desc describe ${1:class_name} do ${2} @@ -926,3 +928,9 @@ snippet aft after :${1:each} do ${2} end +snippet let + let(:${1:method}) { ${2} } +snippet subj + subject { ${1} } +snippet spec + specify { subject.${1} }