remarkable-rb / remarkable

Simplifying tests!
http://www.nomedojogo.com/category/remarkable/
MIT License
120 stars 64 forks source link

Association callbacks are not matched. #39

Open sujoyg opened 12 years ago

sujoyg commented 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.