Fixed RSpec deprecations