Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
solnic committed Jan 21, 2025
1 parent 124009a commit 1aa151e
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions sentry-rails/spec/sentry/send_event_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@
Sentry.get_current_client.transport
end

# context "when ActiveJob is not loaded" do
# before do
# TempActiveJob = ActiveJob
# Object.send(:remove_const, "ActiveJob")
# reload_send_event_job
# end

# after do
# ActiveJob = TempActiveJob
# reload_send_event_job
# end

# it "gets defined as a blank class" do
# expect(Sentry::SendEventJob.superclass).to eq(Object)
# end
# end
context "when ActiveJob is not loaded" do
before do
TempActiveJob = ActiveJob
Object.send(:remove_const, "ActiveJob")
reload_send_event_job
end

after do
ActiveJob = TempActiveJob
reload_send_event_job
end

it "gets defined as a blank class" do
expect(Sentry::SendEventJob.superclass).to eq(Object)
end
end

context "when ActiveJob is loaded" do
after do
Expand Down

0 comments on commit 1aa151e

Please sign in to comment.