Workaround RSpec 3 defining a BasicObject class in Ruby 1.8