Skip to content

Commit 4de6680

Browse files
committed
Added limitation of bundled_gems.rb with sub-feature example
1 parent 3cbfd21 commit 4de6680

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/bundled_gems_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ def script(code, options = {})
129129
RUBY
130130

131131
expect(err).to include(/fiddle was loaded from (.*) from Ruby 3.5.0/)
132+
# We should assert caller location of sub-feature like below:
133+
# expect(err).to include(/-e:7/)
134+
# The current warning message is the location of fiddle itself on sub-feature.
132135
expect(err).to include(/fiddle\/import\.rb:2/) # brittle
133136
end
134137

0 commit comments

Comments
 (0)