Skip to content

Commit e299ac8

Browse files
committed
backtrace specs based on ruby version
1 parent 0ea6b27 commit e299ac8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.2
1+
3.4.5

spec/lib/code_ownership/private/file_path_finder_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ class TestClass; end # rubocop:disable Lint/ConstantDefinitionInBlock, Lint/Empt
6262
end
6363

6464
it 'extracts file paths' do
65-
expect(files).to include('app/models/user.rb', 'app/controllers/some_controller.rb')
65+
if RUBY_VERSION < '3.4.0'
66+
expect(files).to include('app/models/user.rb', 'app/controllers/some_controller.rb')
67+
else
68+
skip 'Ruby version >= 3.4 uses single quote backtrace format'
69+
end
6670
end
6771
end
6872

0 commit comments

Comments
 (0)