diff options
author | MSP-Greg <Greg.mpls@gmail.com> | 2020-06-17 21:26:13 -0500 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-07-15 16:05:12 +0900 |
commit | 23cf99e99dbae352f8497fb20cc92248c9b63580 (patch) | |
tree | d69c5dee7c126af66812b59cc3ab2d96f0c3d535 /spec/bundler/install | |
parent | ad743337b376d8e2a9dae7350b0e89eed636c5bb (diff) | |
download | ruby-23cf99e99dbae352f8497fb20cc92248c9b63580.tar.gz |
[rubygems/rubygems] Bundler specs - Windows - remove skips, File.open => File.readlines
Using File.open without a block leaves a file reference that causes issues with file operations
commands/binstubs_spec.rb
install/gems/compact_index_spec.rb
install/gems/dependency_api_spec.rb
install/gems/standalone_spec.rb
runtime/executable_spec.rb
https://github.com/rubygems/rubygems/commit/4b9a6ca156
Diffstat (limited to 'spec/bundler/install')
-rw-r--r-- | spec/bundler/install/gems/compact_index_spec.rb | 2 | ||||
-rw-r--r-- | spec/bundler/install/gems/dependency_api_spec.rb | 2 | ||||
-rw-r--r-- | spec/bundler/install/gems/standalone_spec.rb | 4 |
3 files changed, 0 insertions, 8 deletions
diff --git a/spec/bundler/install/gems/compact_index_spec.rb b/spec/bundler/install/gems/compact_index_spec.rb index e5ec9cc567..72b2f925d1 100644 --- a/spec/bundler/install/gems/compact_index_spec.rb +++ b/spec/bundler/install/gems/compact_index_spec.rb @@ -522,8 +522,6 @@ The checksum of /versions does not match the checksum provided by the server! So end it "installs the binstubs", :bundler => "< 3" do - skip "exec format error" if Gem.win_platform? - gemfile <<-G source "#{source_uri}" gem "rack" diff --git a/spec/bundler/install/gems/dependency_api_spec.rb b/spec/bundler/install/gems/dependency_api_spec.rb index 5aa4c9af38..da16ace767 100644 --- a/spec/bundler/install/gems/dependency_api_spec.rb +++ b/spec/bundler/install/gems/dependency_api_spec.rb @@ -496,8 +496,6 @@ RSpec.describe "gemcutter's dependency API" do end it "installs the binstubs", :bundler => "< 3" do - skip "exec format error" if Gem.win_platform? - gemfile <<-G source "#{source_uri}" gem "rack" diff --git a/spec/bundler/install/gems/standalone_spec.rb b/spec/bundler/install/gems/standalone_spec.rb index d41cffd74a..503cc4a4f0 100644 --- a/spec/bundler/install/gems/standalone_spec.rb +++ b/spec/bundler/install/gems/standalone_spec.rb @@ -281,14 +281,10 @@ RSpec.shared_examples "bundle install --standalone" do include_examples "common functionality" it "creates stubs that use the standalone load path" do - skip "exec format error" if Gem.win_platform? - expect(sys_exec("bin/rails -v").chomp).to eql "2.3.2" end it "creates stubs that can be executed from anywhere" do - skip "exec format error" if Gem.win_platform? - require "tmpdir" sys_exec(%(#{bundled_app("bin/rails")} -v), :dir => Dir.tmpdir) expect(out).to eq("2.3.2") |