refactor rspec tests to use variables

page 211