applied rspec test with let stmt