I'm testing that email is not required on the user model on update.
With FactoryGirl:
u = FactoryGirl.create(:user)
u.email = nil
expect(u.save).to be_true
The test passes.
With shoulda:
should_not validate_presence_of(:email).on(:update)
The test fails with error:
Failure/Error: should_not validate_presence_of(:email)
Did not expect errors to include "can't be blank" when email is set to nil, got error: can't be blank
Anyone have any thoughts on why this discrepancy occurs?