Entries from 2012-08-01 to 1 day

let vs instance variables in RSpec

merit of "let" 1. When you refactor from local variables into a "let", you should not add @ to variables prefix. 2. "let" is subjective. 3. "let" is lower cost than initialize instance methods by each. e.g. before(:each) { @foo = "foo" }.M…