Fixed deprecation warnings from RSpec 2.99