upgrade to RSpec 3

#7073 revised
Use the new Ruby 1.9 hash syntax.