Some refactoring of common code in the rspec code using let.