Fix deprecations with RSpec 3