File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 10
10
11
11
describe 'lib/cext/include/internal_all.h' do
12
12
it 'includes each *.h file from lib/cext/include/internal/' do
13
- filenames = Dir . glob ( 'internal/**/*.h' , base : 'lib/cext/include' , sort : true )
14
- content = File . read ( 'lib/cext/include/internal_all.h' )
13
+ ruby_home = RbConfig ::CONFIG [ 'prefix' ]
14
+ filenames = Dir . glob ( 'internal/**/*.h' , base : "#{ ruby_home } /lib/cext/include" , sort : true )
15
+ content = File . read ( "#{ ruby_home } /lib/cext/include/internal_all.h" )
15
16
16
17
filenames . should_not be_empty
17
18
20
21
end
21
22
22
23
it 'includes each *.h file from lib/cext/include/stubs/internal/' do
23
- filenames = Dir . glob ( 'internal/**/*.h' , base : 'lib/cext/include/stubs' , sort : true )
24
- content = File . read ( 'lib/cext/include/internal_all.h' )
24
+ ruby_home = RbConfig ::CONFIG [ 'prefix' ]
25
+ filenames = Dir . glob ( 'internal/**/*.h' , base : "#{ ruby_home } /lib/cext/include/stubs" , sort : true )
26
+ content = File . read ( "#{ ruby_home } /lib/cext/include/internal_all.h" )
25
27
26
28
filenames . should_not be_empty
27
29
You can’t perform that action at this time.
0 commit comments