spec/mongoid/criteria/queryable/extensions/symbol_spec.rb in mongoid-8.1.7 vs spec/mongoid/criteria/queryable/extensions/symbol_spec.rb in mongoid-9.0.0

- old
+ new

@@ -1,6 +1,7 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" describe Symbol do @@ -8,9 +9,13 @@ before do described_class.add_key(:fubar, :union, "$fu", "$bar") do |value| value.to_s end + end + + after do + Symbol.undef_method(:fubar) end let(:fubar) do :testing.fubar end