Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/.codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ component_management:
name: tasks
paths:
- app/tasks/**
- component_id: module_scripts
name: scripts
paths:
- app/scripts/**
2 changes: 1 addition & 1 deletion scripts/recalc_abilities.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
end
end.parse!

RecalcAbilitiesJob.perform_now(options)
RecalcAbilitiesJob.perform_now(**options)
9 changes: 9 additions & 0 deletions test/scripts/recalc_abilities_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require 'test_helper'

class RecalcAbilitiesTest < ActiveSupport::TestCase
test 'should correctly run the script' do
assert_nothing_raised do
system('bundle exec rails runner scripts/recalc_abilities.rb', exception: true)
end
end
end
Loading