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