Upgrade to rspec ~> 3.0.
Use transpec to convert specs to rspec 3.0 syntax.
Use the built-in be_between matcher.
Use all(be_between()) and all(be_kind_of())
Use eq(...).or(eq(...)) instead of be_one_of.