From ed720848d108ff7706ab285dbbb0b53a6941caa3 Mon Sep 17 00:00:00 2001 From: Kuba Suder Date: Mon, 27 Jul 2026 23:45:28 +0200 Subject: [PATCH] updated simplecov config --- Gemfile | 2 +- spec/spec_helper.rb | 21 +-------------------- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/Gemfile b/Gemfile index 3879bc4..ed9112d 100644 --- a/Gemfile +++ b/Gemfile @@ -13,5 +13,5 @@ gem 'rdoc' gem 'yard' gem 'mocha' -gem 'simplecov' +gem 'simplecov', require: false gem 'webmock' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c58fffa..3857483 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -4,7 +4,7 @@ require 'simplecov' SimpleCov.start do enable_coverage :branch - add_filter "/spec/" + formatter SimpleCov::Formatter::HTMLFormatter.new(silent: true) end require 'didkit' @@ -22,25 +22,6 @@ RSpec.configure do |config| config.mock_with :mocha end -module SimpleCov - module Formatter - class HTMLFormatter - def format(result) - # silence the stdout summary, just save the html files - unless @inline_assets - Dir[File.join(@public_assets_dir, "*")].each do |path| - FileUtils.cp_r(path, asset_output_path, remove_destination: true) - end - end - - File.open(File.join(output_path, "index.html"), "wb") do |file| - file.puts template("layout").result(binding) - end - end - end - end -end - BSKY_APP_DID = 'did:plc:z72i7hdynmk6r22z27h6tvur' WebMock.enable! -- 2.51.2