1586b141ba4d1c94acce1cdc369c7af2
2015/11/24 15:41:45 投稿
0

より正確な名前付け

Before

describe 'refactoring test' do
  let(:my_refactoring) { build_stubbed :refactoring, user: user }
  let(:refactoring) { build_stubbed :refactoring }

  # do something....
end

After

describe 'refactoring test' do
  let(:my_refactoring) { build_stubbed :refactoring, user: user }
  let(:someone_refactoring) { build_stubbed :refactoring, user: (build_stubbed :user) }

  # do something....
end

みんなのコメント