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-5.0.1 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-5.0.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-4.8.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-4.5.6 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-4.5.5 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-4.5.4 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-4.7.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-4.5.3 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-4.5.2 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-4.5.1 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-4.6.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-4.5.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-4.4.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-4.3.1 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-4.3.0 test/functional/ui_job_wizard_controller_test.rb