Open sujoyg opened 12 years ago
Observation: The following succeeds.
describe Foo do it { should have_and_belong_to :bars, :after_add => :tweet_about_bar } end
class Foo < ActiveRecord::Base has_and_belongs_to_many :bars end
Expectation: It should check for the presence of the after_add callback in the association declaration.
Observation: The following succeeds.
describe Foo do it { should have_and_belong_to :bars, :after_add => :tweet_about_bar }
end
class Foo < ActiveRecord::Base has_and_belongs_to_many :bars end
Expectation: It should check for the presence of the after_add callback in the association declaration.