Commit 906f3005c10e6be9a922f41d96e4e257cdbf9060
1 parent
7992de9d
Exists in
master
and in
27 other branches
plugins/spaminator: fix fragile test
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
plugins/spaminator/test/unit/spaminator_plugin/spaminator_test.rb
| ... | ... | @@ -50,6 +50,7 @@ class SpaminatorPlugin::SpaminatorTest < ActiveSupport::TestCase |
| 50 | 50 | end |
| 51 | 51 | |
| 52 | 52 | should 'process only people from the environment and that are not abusers' do |
| 53 | + Person.delete_all | |
| 53 | 54 | p1 = fast_create(Person) |
| 54 | 55 | p2 = fast_create(Person) |
| 55 | 56 | p3 = fast_create(Person, :environment_id => fast_create(Environment)) | ... | ... |