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-8.1.1 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-8.1.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-7.2.2 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-7.2.1 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-7.2.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-5.0.8 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-8.0.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-7.1.1 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-7.1.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-7.0.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-5.0.7 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-5.0.6 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-6.2.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-5.0.5 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-6.1.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-5.0.4 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-5.0.3 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-6.0.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-5.0.2 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-5.1.0 test/functional/ui_job_wizard_controller_test.rb