File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1168,7 +1168,7 @@ class << self
11681168 /^\( .*\) $/ , # generated code
11691169 /rubygems\/ (custom|core_ext\/ kernel)_require\. rb$/ , # rubygems require hacks
11701170 /active_support/ , # active_support require hacks
1171- /bundler(\/ runtime) ?\. rb/ , # bundler require hacks
1171+ /bundler(\/ (?: runtime|inline)) ?\. rb/ , # bundler require hacks
11721172 /<internal:/ , # internal in ruby >= 1.9.2
11731173 /src\/ kernel\/ bootstrap\/ [A-Z]/ # maglev kernel files
11741174 ]
Original file line number Diff line number Diff line change @@ -186,6 +186,12 @@ def foo=(value)
186186 @base . enable :methodoverride
187187 assert @base . methodoverride?
188188 end
189+
190+ it 'ignores bundler/inline from callers' do
191+ @application . stub ( :caller , -> ( _ ) { [ '/path/to/bundler/inline.rb' , $0] } ) do
192+ assert_equal File . expand_path ( $0) , File . expand_path ( @application . send ( :caller_files ) . first )
193+ end
194+ end
189195 end
190196
191197 describe 'run' do
You can’t perform that action at this time.
0 commit comments