@@ -479,77 +479,3 @@ module ${1:`!p snip.rv = camelize_basename(snip)`}
479
479
${0: ${VISUAL:# module body } }
480
480
end
481
481
endsnippet
482
-
483
- # #######################
484
- # # RSPEC SNIPPETS
485
- # ########################
486
- snippet desc " describe .. do .. end"
487
- describe ${1: `!p snip.rv=re.sub("Spec", "", camelize_basename(snip))` } do
488
- ${0: ${VISUAL:# do something } }
489
- end
490
- endsnippet
491
-
492
- snippet descm " describe 'method_name' .. do .. end"
493
- describe '${1: method } ' do
494
- ${0: ${VISUAL:peding 'Not implemented' } }
495
- end
496
- endsnippet
497
-
498
- snippet cont " context 'message' .. do .. end"
499
- context '${1: message } ' do
500
- ${0: ${VISUAL} }
501
- end
502
- endsnippet
503
-
504
- # snippet bef
505
- # before :${1:each} do
506
- # ${0}
507
- # end
508
- # snippet aft
509
- # after :${1:each} do
510
- # ${0}
511
- # end
512
- # snippet let
513
- # let(:${1:object}) { ${0} }
514
- # snippet let!
515
- # let!(:${1:object}) { ${0} }
516
- # snippet subj
517
- # subject { ${0} }
518
- # snippet s.
519
- # subject.${0:method}
520
- # snippet spec
521
- # specify { subject.${0} }
522
- # snippet exp
523
- # expect(${1:object}).to ${0}
524
- # snippet expb
525
- # expect { ${1:object} }.to ${0}
526
- # snippet experr
527
- # expect { ${1:object} }.to raise_error ${2:StandardError}, /${0:message_regex}/
528
- # snippet allow
529
- # allow(${1:object}).to ${0}
530
- # snippet shared
531
- # shared_examples ${0:'shared examples name'}
532
- # snippet ibl
533
- # it_behaves_like ${0:'shared examples name'}
534
- # snippet it
535
- # it '${1:spec_name}' do
536
- # ${0}
537
- # end
538
- # snippet its
539
- # its(:${1:method}) { should ${0} }
540
- # snippet is
541
- # it { should ${0} }
542
- # snippet isn
543
- # it { should_not ${0} }
544
- # snippet iexp
545
- # it { expect(${1:object}).${2} ${0} }
546
- # snippet iexpb
547
- # it { expect { ${1:object} }.${2} ${0} }
548
- # snippet iiexp
549
- # it { is_expected.to ${0} }
550
- # snippet iiexpn
551
- # it { is_expected.not_to ${0} }
552
- # snippet agg
553
- # aggregate_failures '${1:message}' do
554
- # ${0}
555
- # end
0 commit comments