Update spec files to make them run with rspec 3.0.0 and ruby >= 1.9.3

Tested with ruby 1.9.3p484, 2.0.0p457 and 2.1.2p95
and with rspec 3.0.0. All specs pass.