converted rspec2 to rspec 3 format