Skip to content

Commit

Permalink
fix stub
Browse files Browse the repository at this point in the history
  • Loading branch information
computermacgyver committed Nov 1, 2024
1 parent 3e7ba46 commit 98a4d97
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/models/bot/alegre_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,7 @@ def teardown
}
]
})
ProjectMedia.stubs(:recalculate_last_seen).returns({
Time.now - 2.months
})
ProjectMedia.stubs(:recalculate_last_seen).returns(Time.now - 2.months)
assert_difference 'Relationship.count' do
result = Bot::Alegre.relate_project_media_to_similar_items(pm2)
end
Expand Down

0 comments on commit 98a4d97

Please sign in to comment.