Commit 0883c294ef89f6fd115da13c87cc7e3ac95f8b54
1 parent
67e5eb05
Exists in
web_steps_improvements
and in
8 other branches
spaminator: fix random failing test
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
plugins/spaminator/test/unit/spaminator_plugin/spaminator_test.rb
@@ -96,7 +96,8 @@ class SpaminatorPlugin::SpaminatorTest < ActiveSupport::TestCase | @@ -96,7 +96,8 @@ class SpaminatorPlugin::SpaminatorTest < ActiveSupport::TestCase | ||
96 | end | 96 | end |
97 | 97 | ||
98 | should 'process person by network' do | 98 | should 'process person by network' do |
99 | - person = create_user('spammer').person | 99 | + user = User.current = create_user 'spammer' |
100 | + person = user.person | ||
100 | person.created_at = Time.now - 2.months | 101 | person.created_at = Time.now - 2.months |
101 | person.save! | 102 | person.save! |
102 | c1 = fast_create(Community) | 103 | c1 = fast_create(Community) |