spec/unit/axiom/attribute/equality_operator_spec.rb in axiom-0.1.1 vs spec/unit/axiom/attribute/equality_operator_spec.rb in axiom-0.2.0

- old
+ new

@@ -8,10 +8,10 @@ let(:described_class) { Class.new(Attribute) } let(:name) { :name } let(:object) { described_class.new(name) } before do - described_class.stub(type: Types::Object) + allow(described_class).to receive(:type).and_return(Types::Object) end context 'with the same object' do let(:other) { object }