Sha256: e82cfea632aebf5c7486eb7daca856c121590c608031d65a929f038bf11517cf
Contents?: true
Size: 1.42 KB
Versions: 8
Compression:
Stored size: 1.42 KB
Contents
# frozen_string_literal: true require 'spec_helper' # rubocop:disable RSpec/InstanceVariable RSpec.describe 'Accuracy test' do # rubocop:disable RSpec/DescribeClass before(:all) { WebMock.allow_net_connect! } after(:all) { WebMock.disable_net_connect! } let(:authority_list) { QaServer::AuthorityListerService.authorities_list } let(:authority_name) { :CERL_LD4L_CACHE } describe 'for authority:' do @status_log = QaServer::ScenarioLogger.new QaServer::AuthorityListerService.authorities_list.each do |authority_name| # rubocop:disable Style/MultilineIfModifier QaServer::AuthorityValidatorService.run(authority_name: authority_name, status_log: @status_log, validation_type: QaServer::ScenarioValidator::VALIDATE_ACCURACY) end unless ENV['TRAVIS'] @status_log.each do |test_result| context "#{test_result[:authority_name]}:#{test_result[:subauthority_name]}:#{test_result[:request_data]}:" do it "finds actual <= expected" do pending 'test is known to fail' if test_result[:pending] expect(test_result[:err_message]).to be_empty expect(test_result[:request_data]).to be_present expect(test_result[:actual]).not_to be_nil expect(test_result[:actual]).to be <= test_result[:expected] end end end end end # rubocop:enable RSpec/InstanceVariable
Version data entries
8 entries across 8 versions & 1 rubygems