From 44c2e23bb0749eb5222dfe1f82d76b9cd737c668 Mon Sep 17 00:00:00 2001 From: Martin Streicher Date: Wed, 23 Oct 2024 16:23:55 -0400 Subject: [PATCH] Move test classes into spec/support --- Gemfile.lock | 2 +- lib/servo/sidekiq_job.rb | 5 +---- lib/servo/version.rb | 2 +- spec/support/application_job.rb | 4 ++++ {lib/servo => spec/support}/bar.rb | 0 {lib/servo => spec/support}/foo.rb | 0 6 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 spec/support/application_job.rb rename {lib/servo => spec/support}/bar.rb (100%) rename {lib/servo => spec/support}/foo.rb (100%) diff --git a/Gemfile.lock b/Gemfile.lock index 708f2b9..7706343 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - servo (0.1.2) + servo (0.1.3) activemodel activesupport interactor diff --git a/lib/servo/sidekiq_job.rb b/lib/servo/sidekiq_job.rb index f2d1857..f889faf 100644 --- a/lib/servo/sidekiq_job.rb +++ b/lib/servo/sidekiq_job.rb @@ -3,9 +3,6 @@ module Servo class SidekiqJob include Callable - - if defined?(Sidekiq) - include Sidekiq::Worker - end + include Sidekiq::Worker if defined?(Sidekiq) end end diff --git a/lib/servo/version.rb b/lib/servo/version.rb index d3aaa0d..942cf91 100644 --- a/lib/servo/version.rb +++ b/lib/servo/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Servo - VERSION = '0.1.2' + VERSION = '0.1.3' end diff --git a/spec/support/application_job.rb b/spec/support/application_job.rb new file mode 100644 index 0000000..d92ffdd --- /dev/null +++ b/spec/support/application_job.rb @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +class ApplicationJob < ActiveJob::Base +end diff --git a/lib/servo/bar.rb b/spec/support/bar.rb similarity index 100% rename from lib/servo/bar.rb rename to spec/support/bar.rb diff --git a/lib/servo/foo.rb b/spec/support/foo.rb similarity index 100% rename from lib/servo/foo.rb rename to spec/support/foo.rb