Fix RSpec 3 compatibility