Skip to content

Commit

Permalink
Removes unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
Joey Ruzevich committed Mar 13, 2019
1 parent b2280b9 commit 0841fef
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion app/jobs/update_diaper_partner_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ class UpdateDiaperPartnerJob

def perform(partner_id)
@partner = Partner.find(partner_id)
# #NEW CODE FROM HERE DOWN
@response = DiaperPartnerClient.post(@partner.attributes) if Flipper.enabled?(:email_active)

if @response&.value == Net::HTTPSuccess
Expand Down
8 changes: 0 additions & 8 deletions spec/jobs/update_diaper_partner_job_spec.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
RSpec.describe UpdateDiaperPartnerJob, job: true do
describe ".perform_async" do
it "updates partner status to Pending" do
partner = create(:partner)

UpdateDiaperPartnerJob.perform_async(partner.id)

expect(partner.reload.status).to eq("Pending")
end

it "posts via DiaperPartnerClient" do
partner = create(:partner)
allow(Flipper).to receive(:enabled?) { true }
Expand Down

0 comments on commit 0841fef

Please sign in to comment.