Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
markburns committed Dec 29, 2023
1 parent 04b19dc commit ebfab91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lib/interactify.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ def self.sidekiq?
end
end

Interactify.instance_eval do
@sidekiq_missing = nil
@railties_missing = nil
end

begin
require "sidekiq"
rescue LoadError
Expand Down
3 changes: 1 addition & 2 deletions spec/support/coverage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

SimpleCov.start do
add_group "Sidekiq jobs" do |src_file|
src_file.project_filename =~ %r{lib/interactify/job} ||
src_file.project_filename =~ %r{spec/lib/interactify/job}
src_file.project_filename =~ %r{lib/interactify/async}
end

add_group "Wiring", "lib/interactify/wiring"
Expand Down

0 comments on commit ebfab91

Please sign in to comment.