1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Marked the failing examples with the current master branch on ruby repository

This commit is contained in:
Hiroshi SHIBATA 2020-05-16 19:47:24 +09:00
parent 9c2752296d
commit 26367367ec
Notes: git 2020-05-22 20:33:03 +09:00
14 changed files with 29 additions and 29 deletions

View file

@ -765,7 +765,7 @@ RSpec.describe "bundle clean" do
should_not_have_gems "foo-1.0"
end
it "doesn't remove extensions artifacts from bundled git gems after clean" do
it "doesn't remove extensions artifacts from bundled git gems after clean", :ruby_repo do
build_git "very_simple_git_binary", &:add_c_extension
revision = revision_for(lib_path("very_simple_git_binary-1.0"))
@ -788,7 +788,7 @@ RSpec.describe "bundle clean" do
expect(vendored_gems("bundler/gems/very_simple_git_binary-1.0-#{revision[0..11]}")).to exist
end
it "removes extension directories" do
it "removes extension directories", :ruby_repo do
gemfile <<-G
source "#{file_uri_for(gem_repo1)}"
@ -824,7 +824,7 @@ RSpec.describe "bundle clean" do
expect(simple_binary_extensions_dir).to exist
end
it "removes git extension directories" do
it "removes git extension directories", :ruby_repo do
build_git "very_simple_git_binary", &:add_c_extension
revision = revision_for(lib_path("very_simple_git_binary-1.0"))

View file

@ -6,7 +6,7 @@ RSpec.describe "bundle exec" do
system_gems(system_gems_to_install, :path => default_bundle_path)
end
it "works with --gemfile flag" do
it "works with --gemfile flag", :ruby_repo do
create_file "CustomGemfile", <<-G
gem "rack", "1.0.0"
G
@ -15,7 +15,7 @@ RSpec.describe "bundle exec" do
expect(out).to eq("1.0.0")
end
it "activates the correct gem" do
it "activates the correct gem", :ruby_repo do
gemfile <<-G
gem "rack", "0.9.1"
G
@ -24,7 +24,7 @@ RSpec.describe "bundle exec" do
expect(out).to eq("0.9.1")
end
it "works when the bins are in ~/.bundle" do
it "works when the bins are in ~/.bundle", :ruby_repo do
install_gemfile <<-G
gem "rack"
G
@ -33,7 +33,7 @@ RSpec.describe "bundle exec" do
expect(out).to eq("1.0.0")
end
it "works when running from a random directory" do
it "works when running from a random directory", :ruby_repo do
install_gemfile <<-G
gem "rack"
G
@ -269,7 +269,7 @@ RSpec.describe "bundle exec" do
)
end
it "handles gems installed with --without" do
it "handles gems installed with --without", :ruby_repo do
install_gemfile <<-G, forgotten_command_line_options(:without => "middleware")
source "#{file_uri_for(gem_repo1)}"
gem "rack" # rack 0.9.1 and 1.0 exist
@ -353,7 +353,7 @@ RSpec.describe "bundle exec" do
expect(err).to include("bundler: exec needs a command to run")
end
it "raises a helpful error when exec'ing to something outside of the bundle" do
it "raises a helpful error when exec'ing to something outside of the bundle", :ruby_repo do
bundle! "config set clean false" # want to keep the rackup binstub
install_gemfile! <<-G
source "#{file_uri_for(gem_repo1)}"
@ -457,7 +457,7 @@ RSpec.describe "bundle exec" do
end
describe "with gem executables" do
describe "run from a random directory" do
describe "run from a random directory", :ruby_repo do
before(:each) do
install_gemfile <<-G
gem "rack"
@ -587,7 +587,7 @@ RSpec.describe "bundle exec" do
end
describe "with gems bundled for deployment" do
it "works when calling bundler from another script" do
it "works when calling bundler from another script", :ruby_repo do
skip "https://github.com/rubygems/bundler/issues/6898" if Gem.win_platform?
gemfile <<-G
@ -873,7 +873,7 @@ __FILE__: #{path.to_s.inspect}
bundle! :install
end
it "correctly shells out" do
it "correctly shells out", :ruby_repo do
skip "https://github.com/rubygems/bundler/issues/6898" if Gem.win_platform?
file = bundled_app("file_that_bundle_execs.rb")

View file

@ -41,7 +41,7 @@ RSpec.describe "bundle info" do
expect(err).to eq("Could not find gem 'missing'.")
end
context "given a default gem shippped in ruby" do
context "given a default gem shippped in ruby", :ruby_repo do
it "prints information about the default gem" do
bundle! "info rdoc"
expect(out).to include("* rdoc")

View file

@ -246,7 +246,7 @@ RSpec.describe "bundle gem" do
end
end
it "generates a valid gemspec", :readline do
it "generates a valid gemspec", :readline, :ruby_repo do
bundle! "gem newgem --bin"
prepare_gemspec(bundled_app("newgem", "newgem.gemspec"))

View file

@ -2,7 +2,7 @@
require "bundler/vendored_fileutils"
RSpec.describe "bundle pristine" do
RSpec.describe "bundle pristine", :ruby_repo do
before :each do
build_lib "baz", :path => bundled_app do |s|
s.version = "1.0.0"

View file

@ -63,7 +63,7 @@ RSpec.describe "install with --deployment or --frozen" do
bundle! :install, forgotten_command_line_options(:deployment => true, :without => "test")
end
it "works when you bundle exec bundle" do
it "works when you bundle exec bundle", :ruby_repo do
skip "doesn't find bundle" if Gem.win_platform?
bundle! :install

View file

@ -1139,7 +1139,7 @@ RSpec.describe "bundle install with git sources" do
expect(out).to include(Pathname.glob(default_bundle_path("bundler/gems/extensions/**/foo-1.0-*")).first.to_s)
end
it "does not use old extension after ref changes" do
it "does not use old extension after ref changes", :ruby_repo do
git_reader = build_git "foo", :no_default => true do |s|
s.extensions = ["ext/extconf.rb"]
s.write "ext/extconf.rb", <<-RUBY

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "installing a gem with native extensions" do
RSpec.describe "installing a gem with native extensions", :ruby_repo do
it "installs" do
build_repo2 do
build_gem "c_extension" do |s|

View file

@ -68,7 +68,7 @@ RSpec.shared_examples "bundle install --standalone" do
include_examples "common functionality"
end
describe "with gems with native extension" do
describe "with gems with native extension", :ruby_repo do
before do
install_gemfile <<-G, forgotten_command_line_options(:path => bundled_app("bundle")).merge(:standalone => true, :dir => cwd)
source "#{file_uri_for(gem_repo1)}"

View file

@ -186,7 +186,7 @@ RSpec.describe "global gem caching" do
end
describe "extension caching" do
it "works" do
it "works", :ruby_repo do
skip "gets incorrect ref in path" if Gem.win_platform?
build_git "very_simple_git_binary", &:add_c_extension

View file

@ -162,7 +162,7 @@ RSpec.describe "bundle install" do
expect(the_bundle).to include_gems "rack 1.0.0"
end
it "re-installs gems whose extensions have been deleted" do
it "re-installs gems whose extensions have been deleted", :ruby_repo do
build_lib "very_simple_binary", "1.0.0", :to_system => true do |s|
s.write "lib/very_simple_binary.rb", "raise 'FAIL'"
end

View file

@ -829,7 +829,7 @@ G
system_gems "rack-1.0.0", "rack-0.9.1", :path => default_bundle_path
end
it "activates the correct gem when ruby version matches" do
it "activates the correct gem when ruby version matches", :ruby_repo do
gemfile <<-G
gem "rack", "0.9.1"
@ -852,7 +852,7 @@ G
expect(out).to include("0.9.1")
end
it "fails when the ruby version doesn't match" do
it "fails when the ruby version doesn't match", :ruby_repo do
gemfile <<-G
gem "rack", "0.9.1"
@ -863,7 +863,7 @@ G
should_be_ruby_version_incorrect
end
it "fails when the engine doesn't match" do
it "fails when the engine doesn't match", :ruby_repo do
gemfile <<-G
gem "rack", "0.9.1"
@ -885,7 +885,7 @@ G
# should_be_engine_version_incorrect
# end
it "fails when patchlevel doesn't match" do
it "fails when patchlevel doesn't match", :ruby_repo do
gemfile <<-G
source "#{file_uri_for(gem_repo1)}"
gem "rack"

View file

@ -112,7 +112,7 @@ RSpec.describe "Bundler.setup" do
lp.map! {|p| p.sub(/^#{Regexp.union system_gem_path.to_s, default_bundle_path.to_s, lib_dir.to_s}/i, "") }
end
it "puts loaded gems after -I and RUBYLIB" do
it "puts loaded gems after -I and RUBYLIB", :ruby_repo do
install_gemfile <<-G
source "#{file_uri_for(gem_repo1)}"
gem "rack"
@ -755,7 +755,7 @@ end
expect(out).to eq("yay")
end
it "should clean $LOAD_PATH properly" do
it "should clean $LOAD_PATH properly", :ruby_repo do
gem_name = "very_simple_binary"
full_gem_name = gem_name + "-1.0"
ext_dir = File.join(tmp("extensions", full_gem_name))

View file

@ -39,7 +39,7 @@ RSpec.describe "Bundler.with_env helpers" do
end
end
it "works with nested bundle exec invocations" do
it "works with nested bundle exec invocations", :ruby_repo do
create_file("exe.rb", <<-'RUBY')
count = ARGV.first.to_i
exit if count < 0
@ -95,7 +95,7 @@ RSpec.describe "Bundler.with_env helpers" do
expect(last_command.stdboth).not_to include("-rbundler/setup")
end
it "should restore RUBYLIB" do
it "should restore RUBYLIB", :ruby_repo do
create_file("source.rb", <<-RUBY)
print #{modified_env}['RUBYLIB']
RUBY