ensure that Dir[] results are predictable in build tests
This commit is contained in:
parent
1fe2c6401d
commit
d8dda291a5
@ -1,5 +1,14 @@
|
|||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
|
|
||||||
|
class Dir
|
||||||
|
class << self
|
||||||
|
alias_method :orig_bracket, :[]
|
||||||
|
end
|
||||||
|
def self.[](*args)
|
||||||
|
orig_bracket(*args).sort
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
describe Rscons do
|
describe Rscons do
|
||||||
BUILD_TEST_RUN_DIR = "build_test_run"
|
BUILD_TEST_RUN_DIR = "build_test_run"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user