Sha256: 12abc60b1f76cec5c40e63697fe679211bf761acc3a3c6ceafefe7f801944144
Contents?: true
Size: 1.35 KB
Versions: 13
Compression:
Stored size: 1.35 KB
Contents
# frozen_string_literal: true # DeployRubygem - deploy a gem using rake # Containing a class module DeployRubygem # Using Project to deploy and manage Project module RSpecTesting def testing_inspec(inspector) inspect_test = InspecTestor.new(inspector[:inspec_path], inspector[:input_file], inspector[:waiver_file]) RSpec.describe "Testing #{inspect_test} at #{Dir.pwd}" do it 'Should be a kind of Html' do test_html = inspect_test.save_as_html('/tmp/html/deploy_rubygem_kind_of_html.html') expect(test_html).to be true end it 'Should be a kind of Json' do expect(inspect_test.test_json).to be_kind_of(InspecTestorResult) expect(inspect_test.test_json.status).to eq 'loaded' end it 'Should be successfull' do expect(inspect_test.test_json.success_result).to eq inspector[:success_result] expect(inspect_test.test_json.success_control).to eq inspector[:success_control] expect(inspect_test.test_json.failed_result).to eq inspector[:failed_result] expect(inspect_test.test_json.failed_control).to eq inspector[:failed_control] expect(inspect_test.test_json.pending_result).to eq inspector[:pending_result] expect(inspect_test.test_json.pending_control).to eq inspector[:pending_control] end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems