Skip to content

Commit

Permalink
replace uncovered code usage
Browse files Browse the repository at this point in the history
  • Loading branch information
markburns committed Jul 3, 2024
1 parent 41b5be8 commit eafe27b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
8 changes: 0 additions & 8 deletions lib/interactify/dependency_inference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ def railties_missing!
@railties_missing = true
end

def railties
railties?
end

def railties?
!railties_missing?
end
Expand All @@ -28,10 +24,6 @@ def sidekiq_missing!
@sidekiq_missing = true
end

def sidekiq
sidekiq?
end

def sidekiq?
!sidekiq_missing?
end
Expand Down
6 changes: 3 additions & 3 deletions spec/lib/interactify/async/job_maker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
)
end

if Interactify.sidekiq
if Interactify.sidekiq?
describe "#initialize" do
it "initializes with expected attributes" do
expect(subject.container_klass).to eq(container_klass)
Expand All @@ -31,7 +31,7 @@

describe "concerning JobClass" do
describe "#job_klass" do
if Interactify.sidekiq
if Interactify.sidekiq?
it "returns a job class" do
job_klass = subject.job_klass

Expand All @@ -52,7 +52,7 @@
end
end

if Interactify.sidekiq
if Interactify.sidekiq?
describe "concerning JobClass" do
describe "#job_klass" do
it "job class includes JOBABLE_OPTS constant" do
Expand Down

0 comments on commit eafe27b

Please sign in to comment.