Skip to content

Commit b3e3205

Browse files
author
local
committed
Fix integration tests on Windows
1 parent edfe07d commit b3e3205

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

spec/integration_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
File.expand_path(File.join(File.dirname(__FILE__),'..','bin',name))
77
end
88

9-
let(:command) { "#{path} version" }
9+
let(:command) { "#{RbConfig.ruby} #{path} version" }
1010

1111
subject { sh(command) }
1212

@@ -17,7 +17,7 @@
1717
# Allow `WARN: Unresolved or ambiguous specs during Gem::Specification.reset:` for Ruby 3.0.x and TruffleRuby
1818
expect(subject).to include(expected)
1919
else
20-
expect(subject).to eq(expected)
20+
expect(subject).to end_with(expected)
2121
end
2222
end
2323
end
@@ -28,7 +28,7 @@
2828
File.expand_path(File.join(File.dirname(__FILE__),'..','bin',name))
2929
end
3030

31-
let(:command) { "#{path} version" }
31+
let(:command) { "#{RbConfig.ruby} #{path} version" }
3232

3333
subject { sh(command) }
3434

@@ -39,7 +39,7 @@
3939
# Allow `WARN: Unresolved or ambiguous specs during Gem::Specification.reset:` for Ruby 3.0.x and TruffleRuby
4040
expect(subject).to include(expected)
4141
else
42-
expect(subject).to eq(expected)
42+
expect(subject).to end_with(expected)
4343
end
4444
end
4545
end

0 commit comments

Comments
 (0)