Do you think we can collect the above three lines in a common helper block in spec_helper.rb ?