search for: comment_2

Displaying 1 result from an estimated 1 matches for "comment_2".

Did you mean: comment2
2008 Mar 17
4
RSpec''ing model association callbacks
...each { |c| c.destroy } end end ----------------- User Spec describe User, " being deleted" do before(:each) do end it "should see deleted his own comments" do user = Factory.create_user() comment_1 = Factory.create_comment(:author => user) comment_2 = Factory.create_comment(:author => user) user.destroy comment_1.should be nil comment_2.should be nil end end ----------------- Factory Module def self.create_user(attributes = {}) default_attributes = { :first_name => "Foo", :second_name =>...