diff --git a/test/functional/api/v2/ansible_inventories_controller_test.rb b/test/functional/api/v2/ansible_inventories_controller_test.rb index 93782e258..73ac82a4f 100644 --- a/test/functional/api/v2/ansible_inventories_controller_test.rb +++ b/test/functional/api/v2/ansible_inventories_controller_test.rb @@ -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