LoginSignup
0
0

More than 5 years have passed since last update.

factory_girlを使ってRSpecを書くときに設定しといた方がよいRubyMineのLive Template

Last updated at Posted at 2016-07-12

FactoryGirl

trait

Abbreviation: tr
Description: trait
Template text

trait :$SYSTEM_UNDER_TEST$ do 
  $CURSOR$
end

association

Abbreviation: as
Description: association
Template text

association :$ATTRIBUTE$, factory: :$FACTORY_NAME$

RSpec

before

Abbreviation: bef
Description: before
Template text

before do 
  $CURSOR$
end

describe

Abbreviation: des
Description: describe
Template text

describe '$SYSTEM_UNDER_TEST$' do 
  $CURSOR$
end

context

Abbreviation: con
Description: context
Template text

context '$SYSTEM_UNDER_TEST$' do 
  $CURSOR$
end
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0