From 6c4c7f51d79f5c3fde6153dfdad25461981ad8eb Mon Sep 17 00:00:00 2001 From: Iuri Fernandes Date: Mon, 18 Feb 2013 10:09:55 -0300 Subject: [PATCH] Add snippets to rspec shared examples and new rspec syntax. --- snippets/ruby.snippets | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/snippets/ruby.snippets b/snippets/ruby.snippets index a93b239..2647d62 100644 --- a/snippets/ruby.snippets +++ b/snippets/ruby.snippets @@ -934,3 +934,13 @@ snippet subj subject { ${1} } snippet spec specify { subject.${1} } +snippet exp + expect(${1:object}).to ${2} +snippet bt + be_true +snippet bf + be_false +snippet shared + shared_examples "${1:shared examples name}" ${2} +snippet itb + it_behaves_like "${1:shared examples name}"${2}