Sha256: 779cf6233b52da510ecfb0a3f3e1a6a74b76e4998f1cfc95c0e37c2005c3f07a

Contents?: true

Size: 535 Bytes

Versions: 9

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

9 entries across 9 versions & 1 rubygems

Version Path
foreman_remote_execution-15.0.1 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-15.0.0 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-14.1.4 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-14.1.3 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-14.1.2 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-14.1.1 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-14.0.2 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-14.0.1 test/functional/ui_job_wizard_controller_test.rb
foreman_remote_execution-14.0.0 test/functional/ui_job_wizard_controller_test.rb