spec/has_responsible_spec.rb in activable-0.1.0 vs spec/has_responsible_spec.rb in activable-0.1.1

- old
+ new

@@ -34,10 +34,12 @@ u.active?.should be_true u.activated_by.should be_equal admin u.activated_at.should_not be_nil u.deactivated_by.should be_nil u.deactivated_at.should be_nil + User.active.include?(u).should be_true + User.inactive.include?(u).should_not be_true end it 'can be deactivated' do another_user = FactoryGirl.build(:another_user) another_user.save(validate: false) @@ -48,7 +50,9 @@ u.save.should be_true, "Deactivated user should be saved. " + u.errors.full_messages.to_s u.active?.should_not be_true u.deactivated_by.should be_equal another_user u.deactivated_at.should_not be_nil + User.active.include?(u).should_not be_true + User.inactive.include?(u).should be_true end end