letize
Convert variable assignments into before blocks
JustinAiken 36 0 0.1.0 MIT GitHub

letize package

  • Has betterspecs convinced you that let is the way to go?
  • Are you spending all day letizing legecy specs?
  • This package to the rescue!

Screenshot

Example

# Turns this:
blah = create(:lasdflkaj)
@foo    = FactoryGirl.create(Blah)

# Into this:
let(:blah) { create(:lasdflkaj) }
let(:foo) { create(Blah) }