Skip to content

Commit

Permalink
Fixes #35579 - Pass parameters as keyword arguments
Browse files Browse the repository at this point in the history
This raises a deprecation warning in Ruby 2.7 and breaks in Ruby 3.
  • Loading branch information
ekohl authored and nofaralfasi committed Sep 12, 2023
1 parent bdb1788 commit 37c650e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class AnsibleInventoriesControllerTest < ActionController::TestCase
Setting['ansible_inventory_template'] = report.name
user = FactoryBot.create(:user)
user.roles << Role.find_by(:name => 'Ansible Tower Inventory Reader')
post :schedule, { :session => set_session_user(user) }
post :schedule, session: set_session_user(user)
assert_response :success
end

Expand Down

0 comments on commit 37c650e

Please sign in to comment.