Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sentry-rails/spec/active_job/continuable_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
if RAILS_VERSION >= 8.1
require "active_job/continuation/test_helper"

RSpec.describe "Sentry + ActiveJob::Continuable", type: :job do
RSpec.describe "Sentry + ActiveJob::Continuable", type: :job, isolate: :group do
include_context "active_job backend harness", adapter: :test
include_context "test adapter"
include ActiveJob::Continuation::TestHelper
Expand Down
2 changes: 1 addition & 1 deletion sentry-rails/spec/active_job/delayed_job_adapter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
return
end

RSpec.describe "Sentry + ActiveJob on the delayed_job adapter", type: :job do
RSpec.describe "Sentry + ActiveJob on the delayed_job adapter", type: :job, isolate: :group do
include ActiveSupport::Testing::TimeHelpers
include_context "active_job backend harness", adapter: :delayed_job
include_context "delayed_job adapter"
Expand Down
4 changes: 2 additions & 2 deletions sentry-rails/spec/active_job/good_job_cron_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
end

if defined?(::GoodJob)
RSpec.describe Sentry::Rails::GoodJobCron, type: :job do
RSpec.describe Sentry::Rails::GoodJobCron, type: :job, isolate: :group do
before(:all) do
skip "GoodJob cron specs run the real GoodJob adapter, which ActiveJob::TestHelper supports from Rails 7.1" if RAILS_VERSION < 7.1
end
Expand Down Expand Up @@ -458,7 +458,7 @@ def perform; end
end

if RAILS_VERSION >= 7.1
RSpec.describe "Sentry::Rails::GoodJobCron on a GoodJob database", type: :job do
RSpec.describe "Sentry::Rails::GoodJobCron on a GoodJob database", type: :job, isolate: :group do
include_context "active_job backend harness", adapter: :good_job
include_context "good_job database"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
end

if defined?(::GoodJob)
RSpec.describe "GoodJob cron notification subscriber", type: :job do
RSpec.describe "GoodJob cron notification subscriber", type: :job, isolate: :group do
include_context "active_job backend harness", adapter: :test
include_context "test adapter"

Expand Down
2 changes: 1 addition & 1 deletion sentry-rails/spec/active_job/good_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

GOOD_JOB_ADAPTER_FOR_TEST = ::ActiveJob::QueueAdapters::GoodJobAdapter.new(execution_mode: :external)

RSpec.describe "Sentry + ActiveJob on GoodJob", type: :job do
RSpec.describe "Sentry + ActiveJob on GoodJob", type: :job, isolate: :group do
include ActiveSupport::Testing::TimeHelpers
include_context "active_job backend harness", adapter: :good_job
include_context "good_job database"
Expand Down
2 changes: 1 addition & 1 deletion sentry-rails/spec/active_job/resque_adapter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
return
end

RSpec.describe "Sentry + ActiveJob on the resque adapter", type: :job do
RSpec.describe "Sentry + ActiveJob on the resque adapter", type: :job, isolate: :group do
include ActiveSupport::Testing::TimeHelpers
include_context "active_job backend harness", adapter: :resque
include_context "resque adapter"
Expand Down
2 changes: 1 addition & 1 deletion sentry-rails/spec/active_job/sidekiq_adapter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
return
end

RSpec.describe "Sentry + ActiveJob on the sidekiq adapter", type: :job do
RSpec.describe "Sentry + ActiveJob on the sidekiq adapter", type: :job, isolate: :group do
include_context "active_job backend harness", adapter: :sidekiq
include_context "sidekiq adapter"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

SOLID_QUEUE_RECURRING_ADAPTER = ::ActiveJob::QueueAdapters::SolidQueueAdapter.new

RSpec.describe Sentry::Rails::SolidQueueRecurring, type: :job do
RSpec.describe Sentry::Rails::SolidQueueRecurring, type: :job, isolate: :group do
include_context "active_job backend harness", adapter: :solid_queue

let(:excluded_tasks) { [] }
Expand Down
2 changes: 1 addition & 1 deletion sentry-rails/spec/active_job/solid_queue_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
if RAILS_VERSION >= 7.1 && RUBY_VERSION >= "3.1"
require "solid_queue"

RSpec.describe "Sentry + ActiveJob on SolidQueue", type: :job do
RSpec.describe "Sentry + ActiveJob on SolidQueue", type: :job, isolate: :group do
include ActiveSupport::Testing::TimeHelpers
include_context "active_job backend harness", adapter: :solid_queue

Expand Down
2 changes: 1 addition & 1 deletion sentry-rails/spec/active_job/test_adapter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "spec_helper"

RSpec.describe "Sentry + ActiveJob on the test adapter", type: :job do
RSpec.describe "Sentry + ActiveJob on the test adapter", type: :job, isolate: :group do
include_context "active_job backend harness", adapter: :test
include_context "test adapter"

Expand Down
4 changes: 2 additions & 2 deletions sentry-rails/spec/sentry/rails/action_cable_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def disconnect
end
end

RSpec.describe "without Sentry initialized" do
RSpec.describe "without Sentry initialized", isolate: true do
before do
allow(Sentry).to receive(:get_main_hub).and_return(nil)
make_basic_app
Expand All @@ -66,7 +66,7 @@ def disconnect
end
end

RSpec.describe "Sentry::Rails::ActionCableExtensions", type: :channel do
RSpec.describe "Sentry::Rails::ActionCableExtensions", type: :channel, isolate: true do
let(:transport) { Sentry.get_current_client.transport }

after do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "spec_helper"

RSpec.describe "ActiveJob hub isolation through the Rails request stack", type: :request do
RSpec.describe "ActiveJob hub isolation through the Rails request stack", type: :request, isolate: true do
let(:transport) { Sentry.get_current_client.transport }

before do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "spec_helper"

RSpec.describe "Sentry + ActiveJob with a registered job extension", type: :job do
RSpec.describe "Sentry + ActiveJob with a registered job extension", type: :job, isolate: :group do
include_context "active_job backend harness", adapter: :test
include_context "test adapter"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "spec_helper"

RSpec.describe "Sentry::Rails.active_job_owns_adapter?" do
RSpec.describe "Sentry::Rails.active_job_owns_adapter?", isolate: true do
let(:adapter_class_name) { "ActiveJob::QueueAdapters::SidekiqAdapter" }

it "is true when Sentry is initialized and the adapter is not skipped" do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "spec_helper"

RSpec.describe "Sentry::Breadcrumbs::ActiveSupportLogger", type: :request do
RSpec.describe "Sentry::Breadcrumbs::ActiveSupportLogger", type: :request, isolate: true do
after do
Sentry::Rails::Breadcrumb::ActiveSupportLogger.detach
# even though we cleanup breadcrumbs in the rack middleware
Expand Down
2 changes: 1 addition & 1 deletion sentry-rails/spec/sentry/rails/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "spec_helper"

RSpec.describe Sentry::Client, type: :request, retry: 3, skip: Gem::Version.new(Rails.version) < Gem::Version.new('5.1.0') do
RSpec.describe Sentry::Client, type: :request, retry: 3, skip: Gem::Version.new(Rails.version) < Gem::Version.new('5.1.0'), isolate: true do
let(:transport) do
Sentry.get_current_client.transport
end
Expand Down
2 changes: 1 addition & 1 deletion sentry-rails/spec/sentry/rails/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "spec_helper"

RSpec.describe Sentry::Rails::Configuration do
RSpec.describe Sentry::Rails::Configuration, isolate: true do
it "adds #rails option to Sentry::Configuration" do
config = Sentry::Configuration.new

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'spec_helper'
require "sentry/rails/controller_methods"

RSpec.describe Sentry::Rails::ControllerMethods do
RSpec.describe Sentry::Rails::ControllerMethods, isolate: true do
include described_class

def request
Expand Down
2 changes: 1 addition & 1 deletion sentry-rails/spec/sentry/rails/event_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'spec_helper'

RSpec.describe Sentry::Event do
RSpec.describe Sentry::Event, isolate: true do
before do
make_basic_app
end
Expand Down
2 changes: 1 addition & 1 deletion sentry-rails/spec/sentry/rails/log_subscriber_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

require "sentry/rails/log_subscriber"

RSpec.describe Sentry::Rails::LogSubscriber, type: :request do
RSpec.describe Sentry::Rails::LogSubscriber, type: :request, isolate: true do
let!(:test_subscriber) { test_subscriber_class.new }

after do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "spec_helper"

RSpec.describe Sentry::Rails::LogSubscribers::ActionControllerSubscriber, type: :request do
RSpec.describe Sentry::Rails::LogSubscribers::ActionControllerSubscriber, type: :request, isolate: true do
context "when logging is enabled" do
let(:send_default_pii) { false }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "spec_helper"

RSpec.describe Sentry::Rails::LogSubscribers::ActionMailerSubscriber do
RSpec.describe Sentry::Rails::LogSubscribers::ActionMailerSubscriber, isolate: true do
context "when logging is enabled" do
let(:send_default_pii) { false }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "spec_helper"

RSpec.describe Sentry::Rails::LogSubscribers::ActiveJobSubscriber, skip: Rails.version.to_f < 5.1 do
RSpec.describe Sentry::Rails::LogSubscribers::ActiveJobSubscriber, skip: Rails.version.to_f < 5.1, isolate: true do
context "when logging is enabled" do
let(:send_default_pii) { false }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "spec_helper"

RSpec.describe Sentry::Rails::LogSubscribers::ActiveRecordSubscriber do
RSpec.describe Sentry::Rails::LogSubscribers::ActiveRecordSubscriber, isolate: true do
context "when logging is enabled" do
let(:send_default_pii) { false }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "spec_helper"

RSpec.describe Sentry::Rails::StructuredLogging, type: :request do
RSpec.describe Sentry::Rails::StructuredLogging, type: :request, isolate: true do
context "when rails structured logging is disabled" do
before do
make_basic_app do |config|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "spec_helper"

RSpec.describe Sentry::Rails::Tracing::ActionViewSubscriber, :subscriber, type: :request do
RSpec.describe Sentry::Rails::Tracing::ActionViewSubscriber, :subscriber, type: :request, isolate: true do
let(:transport) do
Sentry.get_current_client.transport
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "spec_helper"

RSpec.describe Sentry::Rails::Tracing::ActiveRecordSubscriber, :subscriber do
RSpec.describe Sentry::Rails::Tracing::ActiveRecordSubscriber, :subscriber, isolate: true do
let(:transport) do
Sentry.get_current_client.transport
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Skipped on JRuby because it's very flaky there due to shelling out to use imagemagick CLI
RSpec.describe Sentry::Rails::Tracing::ActiveStorageSubscriber, :subscriber, type: :request,
skip: Rails.version.to_f <= 5.2 || RUBY_PLATFORM == "java" do
skip: Rails.version.to_f <= 5.2 || RUBY_PLATFORM == "java", isolate: true do
let(:transport) do
Sentry.get_current_client.transport
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "spec_helper"

RSpec.describe Sentry::Rails::Tracing::ActiveSupportSubscriber, :subscriber, type: :request do
RSpec.describe Sentry::Rails::Tracing::ActiveSupportSubscriber, :subscriber, type: :request, isolate: true do
let(:transport) do
Sentry.get_current_client.transport
end
Expand Down
2 changes: 1 addition & 1 deletion sentry-rails/spec/sentry/rails/tracing_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "spec_helper"

RSpec.describe Sentry::Rails::Tracing, type: :request do
RSpec.describe Sentry::Rails::Tracing, type: :request, isolate: true do
let(:transport) do
Sentry.get_current_client.transport
end
Expand Down
2 changes: 1 addition & 1 deletion sentry-rails/spec/sentry/rails_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "spec_helper"

RSpec.describe Sentry::Rails, type: :request do
RSpec.describe Sentry::Rails, type: :request, isolate: true do
let(:transport) do
Sentry.get_current_client.transport
end
Expand Down
Loading
Loading