Add more rspec snippets.
This commit is contained in:
parent
22b4f2073b
commit
576063eb67
@ -910,6 +910,8 @@ snippet it
|
|||||||
snippet itp
|
snippet itp
|
||||||
it "${1:spec_name}"
|
it "${1:spec_name}"
|
||||||
${2}
|
${2}
|
||||||
|
snippet its
|
||||||
|
its(:${1:method}) { should ${2} }
|
||||||
snippet desc
|
snippet desc
|
||||||
describe ${1:class_name} do
|
describe ${1:class_name} do
|
||||||
${2}
|
${2}
|
||||||
@ -926,3 +928,9 @@ snippet aft
|
|||||||
after :${1:each} do
|
after :${1:each} do
|
||||||
${2}
|
${2}
|
||||||
end
|
end
|
||||||
|
snippet let
|
||||||
|
let(:${1:method}) { ${2} }
|
||||||
|
snippet subj
|
||||||
|
subject { ${1} }
|
||||||
|
snippet spec
|
||||||
|
specify { subject.${1} }
|
||||||
|
Loading…
Reference in New Issue
Block a user