Sha256: c7ab8fe10de582347fc183c8408459642f296145cd6daa00c9f9e48713eb346d
Contents?: true
Size: 614 Bytes
Versions: 40
Compression:
Stored size: 614 Bytes
Contents
require 'test_plugin_helper' class Api::V2::Compliance::ScapContentProfilesControllerTest < ActionController::TestCase test "should get index" do 2.times do FactoryBot.create(:scap_content_profile) end FactoryBot.create(:scap_content, :scap_content_profiles => [ForemanOpenscap::ScapContentProfile.first]) FactoryBot.create(:tailoring_file, :scap_content_profiles => [ForemanOpenscap::ScapContentProfile.last]) get :index, :session => set_session_user response = ActiveSupport::JSON.decode(@response.body) assert response['results'].any? assert_response :success end end
Version data entries
40 entries across 40 versions & 1 rubygems