Sha256: d9ebd88de366e561716d719ab5fce870906c8033bd43515384c1e59aba41a00b

Contents?: true

Size: 535 Bytes

Versions: 75

Compression:

Stored size: 535 Bytes

Contents

require 'test_plugin_helper'

class UiJobWizardControllerTest < ActionController::TestCase
  def setup
    FactoryBot.create(:job_template, :job_category => 'cat1')
    FactoryBot.create(:job_template, :job_category => 'cat2')
    FactoryBot.create(:job_template, :job_category => 'cat2')
  end

  test 'should respond with categories' do
    get :categories, :params => {}, :session => set_session_user
    assert_response :success
    res = JSON.parse @response.body
    assert_equal ['cat1','cat2'], res['job_categories']
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
foreman_remote_execution-10.1.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-8.3.3 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-8.3.2 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-11.0.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-10.0.7 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-8.3.1 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-10.0.6 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-10.0.5 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-10.0.4 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-10.0.3 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-10.0.2 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-10.0.1 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-10.0.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-8.3.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-9.1.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-8.2.1 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-8.2.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-9.0.1 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-9.0.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-8.1.2 test/functional/ui_job_wizard_controller_test.rb