upgrade RSpec

Upgrade RSpec and fix some deprications.