Skip to content

Commit 1ba54c5

Browse files
committed
test(active_job): skip range serialization examples on Rails < 7.0
1 parent f72ae06 commit 1ba54c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sentry-rails/spec/active_job/shared_examples/argument_serialization.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def event_arguments
3535
expect(event_arguments).to eq([{ wrapper: { post: post.to_global_id.to_s } }])
3636
end
3737

38-
it "expands integer ranges into arrays" do
38+
it "expands integer ranges into arrays", skip: RAILS_VERSION < 7.0 do
3939
expect do
4040
failing_job.perform_later(1..3)
4141
drain
@@ -44,7 +44,7 @@ def event_arguments
4444
expect(event_arguments).to eq([[1, 2, 3]])
4545
end
4646

47-
it "stringifies ActiveSupport::TimeWithZone ranges preserving the boundary operator" do
47+
it "stringifies ActiveSupport::TimeWithZone ranges preserving the boundary operator", skip: RAILS_VERSION < 7.0 do
4848
range = 1.day.ago...Time.zone.now
4949

5050
expect do

0 commit comments

Comments
 (0)