DEV: if plugins are installed do not fail the test

This commit is contained in:
Sam 2017-12-04 17:25:01 +11:00
parent f5d45f797a
commit af061efcf5

View File

@ -24,7 +24,7 @@ RSpec.describe Jobs::FixPrimaryEmailsForStagedUsers do
.to change { User.count }.by(-2)
.and change { staged_user.posts.count }.by(3)
expect(User.all).to contain_exactly(Discourse.system_user, staged_user, active_user)
expect(User.where('id > -2')).to contain_exactly(Discourse.system_user, staged_user, active_user)
expect(staged_user.posts.all).to contain_exactly(post1, post2, post3)
expect(staged_user.reload.email).to eq(common_email)
end