spec/lib/abstractivator/lazy_spec.rb in abstractivator-0.15.0 vs spec/lib/abstractivator/lazy_spec.rb in abstractivator-0.16.0

- old
+ new

@@ -27,11 +27,11 @@ expect(lazy { 42 } == 42).to be true expect(lazy { 42 } == 99).to be false expect(lazy { 42 } != 42).to be false expect(lazy { 42 } != 99).to be true expect(lazy { 42 } === 42).to be true - expect(Fixnum === lazy { 42 }).to be true + expect(Integer === lazy { 42 }).to be true expect(Array === lazy { 42 }).to be false expect(!(lazy { true })).to be false expect(!(lazy { false })).to be true end @@ -52,10 +52,10 @@ expect(value.inspect).to match /#<Abstractivator::Lazy:0x[0-9a-f]+>/ end it 'reveals the value type if the value has already been forced' do value = lazy { 42 } value.to_s - expect(value.inspect).to match /#<Abstractivator::Lazy:Fixnum:0x[0-9a-f]+>/ + expect(value.inspect).to match /#<Abstractivator::Lazy:Integer:0x[0-9a-f]+>/ end end context 'when the block raises an error' do let!(:value) { lazy { raise 'oops' } }