spec/blobject_spec.rb in blobject-0.4.0 vs spec/blobject_spec.rb in blobject-0.4.1
- old
+ new
@@ -36,9 +36,14 @@
it 'does not result in a graph containing empty blobjects' do
b.fish.food
assert !b.fish?, 'should not have assigned an empty blobject'
end
+ it 'does not result in a graph containing empty blobjects when using checkers' do
+ b.fish.food?
+ assert !b.fish?, 'should not have assigned an empty blobject'
+ end
+
it 'turns hashes into blobjects when assigning' do
b.name = { christian: "Vinnie", surname: "Jones" }
assert_instance_of Blobject, b.name