Rspec upgrade from version 2 to 3 and required changes in spec files