Skip to content

Association callbacks are not matched. #39

@sujoyg

Description

@sujoyg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions