diff --git a/lib/interactify/dependency_inference.rb b/lib/interactify/dependency_inference.rb index 016205d..b6fd324 100644 --- a/lib/interactify/dependency_inference.rb +++ b/lib/interactify/dependency_inference.rb @@ -12,10 +12,6 @@ def railties_missing! @railties_missing = true end - def railties - railties? - end - def railties? !railties_missing? end @@ -28,10 +24,6 @@ def sidekiq_missing! @sidekiq_missing = true end - def sidekiq - sidekiq? - end - def sidekiq? !sidekiq_missing? end diff --git a/spec/lib/interactify/async/job_maker_spec.rb b/spec/lib/interactify/async/job_maker_spec.rb index 87b7ad1..516c784 100644 --- a/spec/lib/interactify/async/job_maker_spec.rb +++ b/spec/lib/interactify/async/job_maker_spec.rb @@ -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) @@ -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 @@ -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