spec/attributes_spec.rb in cistern-2.3.0 vs spec/attributes_spec.rb in cistern-2.4.0
- old
+ new
@@ -73,10 +73,10 @@
end
it 'should parse string' do
expect(TypeSpec.new(name: 1).name).to eq('1')
expect(TypeSpec.new(name: "b").name).to eq('b')
- expect(TypeSpec.new(name: nil).name).to eq("")
+ expect(TypeSpec.new(name: nil).name).to eq(nil)
end
it 'should allow nils in string types' do
expect(TypeSpec.new(string_allow_nil: nil).string_allow_nil).to eq(nil)
end