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

- old
+ new

@@ -7,10 +7,14 @@ let(:described_class) { Class.new(Attribute) } let(:name) { :name } let(:object) { described_class.new(name) } + before do + described_class.stub(type: Types::Object) + end + context 'with the same object' do let(:other) { object } it { should be(true) } @@ -48,10 +52,10 @@ should eql(other == object) end end context 'with an object having a different required option' do - let(:other) { described_class.new(name, :required => false) } + let(:other) { described_class.new(name, required: false) } it { should be(false) } it 'is symmetric' do should eql(other == object)