1
0
mirror of synced 2026-08-04 22:26:56 +00:00

fix empty arg

This commit is contained in:
Rimian Perkins
2017-04-27 18:39:11 +10:00
parent 0a20a10237
commit 9038701520
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
module Jobs
class AwardGroup < ::Jobs::Scheduled
every 2.minutes
every 1.minutes
def execute
def execute(_args)
puts '====================== The Job was executed ==========================='
user_queue.each do |email|
user = User.find_by_email(email)
+1 -1
View File
@@ -9,7 +9,7 @@ RSpec.describe Jobs::AwardGroup, type: :job do
end
it 'adds the users to the group' do
Jobs::AwardGroup.new.execute
Jobs::AwardGroup.new.execute(nil)
aggregate_failures do
expect(users.first.groups).to include(grp)
expect(users.last.groups).to include(grp)