Sha256: 1c6af8ca4abf565e7bda430152f4debf72670089f3f1ba6e9bd2ad751ecea754

Contents?: true

Size: 675 Bytes

Versions: 61

Compression:

Stored size: 675 Bytes

Contents

require 'test_plugin_helper'
require 'application_helper'

class OpenscapProxiesControllerTest < ActionController::TestCase
  include ActionView::Helpers::DateHelper
  include ApplicationHelper

  test "should render spool error" do
    spool_error = { "errors_count" => 4 }
    ProxyStatus::OpenscapSpool.any_instance.stubs(:spool_status).returns(spool_error)
    proxy = FactoryBot.create(:openscap_proxy)
    get :openscap_spool, :params => { :id => proxy.id }, :session => set_session_user
    assert_template :partial => 'smart_proxies/_openscap_spool'
    assert @response.body.match('4 spool errors detected, inspect the appropriate file directly on proxy')
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
foreman_openscap-10.0.1 test/functional/openscap_proxies_controller_test.rb
foreman_openscap-10.0.0 test/functional/openscap_proxies_controller_test.rb
foreman_openscap-9.0.4 test/functional/openscap_proxies_controller_test.rb
foreman_openscap-9.0.3 test/functional/openscap_proxies_controller_test.rb
foreman_openscap-9.0.2 test/functional/openscap_proxies_controller_test.rb
foreman_openscap-9.0.1 test/functional/openscap_proxies_controller_test.rb
foreman_openscap-9.0.0 test/functional/openscap_proxies_controller_test.rb
foreman_openscap-8.0.0 test/functional/openscap_proxies_controller_test.rb
foreman_openscap-7.1.1 test/functional/openscap_proxies_controller_test.rb
foreman_openscap-7.1.0 test/functional/openscap_proxies_controller_test.rb
foreman_openscap-7.0.0 test/functional/openscap_proxies_controller_test.rb
foreman_openscap-6.0.0 test/functional/openscap_proxies_controller_test.rb
foreman_openscap-5.2.3 test/functional/openscap_proxies_controller_test.rb
foreman_openscap-5.2.2 test/functional/openscap_proxies_controller_test.rb
foreman_openscap-5.1.1 test/functional/openscap_proxies_controller_test.rb
foreman_openscap-5.2.1 test/functional/openscap_proxies_controller_test.rb
foreman_openscap-5.2.0 test/functional/openscap_proxies_controller_test.rb
foreman_openscap-5.1.0 test/functional/openscap_proxies_controller_test.rb
foreman_openscap-5.0.0 test/functional/openscap_proxies_controller_test.rb
foreman_openscap-4.3.3 test/functional/openscap_proxies_controller_test.rb