Change rspec to use let function