Sha256: c8fb5f23746f494a7343876c77bde090abb664847092acb59370fcfc8a2875e4

Contents?: true

Size: 381 Bytes

Versions: 3

Compression:

Stored size: 381 Bytes

Contents

require 'test_plugin_helper'

class UIAnsibleRolesControllerTest < ActionController::TestCase
  setup do
    @role = FactoryBot.create(:ansible_role)
  end

  test 'should respond with roles' do
    get :index, :params => {}, :session => set_session_user
    assert_response :success
    res = JSON.parse @response.body
    assert_equal res['total'], res['results'].size
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_ansible-15.0.2 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-15.0.1 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-15.0.0 test/functional/ui_ansible_roles_controller_test.rb