Skip to content

Commit 5fc0284

Browse files
committed
chore(): skip paperclip tests if ruby 3
1 parent c2e1ea5 commit 5fc0284

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

spec/features/attachment_builder_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
require 'rails_helper'
22

33
describe "Attachment Builder", type: :feature do
4+
before do
5+
if Gem::Dependency.new('', '~> 3').match?('', RUBY_VERSION)
6+
skip("Paperclip doesn't support Ruby 3")
7+
end
8+
end
9+
410
after do
511
Invoice.all.each do |invoice|
612
invoice.attachment = nil

spec/features/image_builder_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ def create_picture_invoice
8787
end
8888

8989
describe '#paperclip' do
90+
before do
91+
if Gem::Dependency.new('', '~> 3').match?('', RUBY_VERSION)
92+
skip("Paperclip doesn't support Ruby 3")
93+
end
94+
end
95+
9096
context "without options" do
9197
before do
9298
register_index(Invoice) do

0 commit comments

Comments
 (0)