I have a model like this:
class A < ActiveRecord::Base
has_many :bs, :dependent => :destroy
and I have test code like this:
a = create_a
b = create_b(a)
assert_difference 'B.count', -1 do # WORKS
assert a.destroyed? # WORKS
assert b.destroyed? # FAILS - why?
b is deleted from the database but the destroyed method returns false.
Why ist the test failing and what can I do to make the last assert pass?