Sha256: 5c1ccbfc8d958993b044518aa326718317a81364d53befe0b23d5527e3172efa
Contents?: true
Size: 534 Bytes
Versions: 54
Compression:
Stored size: 534 Bytes
Contents
require 'test_plugin_helper' module Api module V2 class HostsControllerTest < ActionController::TestCase test "should get policies enc" do policy = FactoryBot.create(:policy) host = FactoryBot.create(:compliance_host, :policies => [policy]) get :policies_enc, :params => { :id => host.id }, :session => set_session_user assert_response :success response = ActiveSupport::JSON.decode(@response.body) assert_equal policy.id, response.first['id'] end end end end
Version data entries
54 entries across 54 versions & 1 rubygems