REFACTOR: update rspec to use let function