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