Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Association callbacks are not matched. #39

Open
sujoyg opened this issue Aug 25, 2012 · 0 comments
Open

Association callbacks are not matched. #39

sujoyg opened this issue Aug 25, 2012 · 0 comments

Comments

@sujoyg
Copy link

sujoyg commented Aug 25, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant