Skip to content

Commit 81745c6

Browse files
authored
Merge pull request #1318 from Shopify/uk-filter-pp-constant
Start filtering `::PP::ObjectMixin` again
2 parents c217828 + 0c10945 commit 81745c6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/tapioca/gem/pipeline_spec.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def log; end
337337
end
338338
RBI
339339

340-
compiled = compile
340+
compiled = compile.gsub(/^\s+include ::PP::ObjectMixin\s/, "")
341341

342342
assert_includes(compiled, basic_object_output)
343343
assert_includes(compiled, object_output)
@@ -373,7 +373,9 @@ class Object < ::BasicObject
373373
end
374374
RBI
375375

376-
assert_includes(compile, output)
376+
compiled = compile.gsub(/^\s+include ::PP::ObjectMixin\s/, "")
377+
378+
assert_includes(compiled, output)
377379
end
378380

379381
it "compiles mixins in the correct order" do

0 commit comments

Comments
 (0)