summaryrefslogtreecommitdiff
path: root/spec/quality_spec.rb
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2018-10-16 20:59:38 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2018-10-20 20:00:39 +0900
commit2519ba9faf0dda681545fe38c6be7979155007c8 (patch)
tree3229f421e85102366bd64eccb689ca09d582cb2a /spec/quality_spec.rb
parent5417b218c499db48b23de2bdc38ba2f33d3223c0 (diff)
downloadbundler-2519ba9faf0dda681545fe38c6be7979155007c8.tar.gz
Added ruby_core filtering condition with some examples.
The ruby core repository couldn't invoke its examples.
Diffstat (limited to 'spec/quality_spec.rb')
-rw-r--r--spec/quality_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/quality_spec.rb b/spec/quality_spec.rb
index f8aec009ef..84da4aaeb9 100644
--- a/spec/quality_spec.rb
+++ b/spec/quality_spec.rb
@@ -104,7 +104,7 @@ RSpec.describe "The library itself" do
end
end
- it "has no malformed whitespace" do
+ it "has no malformed whitespace", :ruby_repo do
exempt = /\.gitmodules|\.marshal|fixtures|vendor|ssl_certs|LICENSE|vcr_cassettes/
error_messages = []
Dir.chdir(root) do
@@ -117,7 +117,7 @@ RSpec.describe "The library itself" do
expect(error_messages.compact).to be_well_formed
end
- it "does not include any leftover debugging or development mechanisms" do
+ it "does not include any leftover debugging or development mechanisms", :ruby_repo do
exempt = %r{quality_spec.rb|support/helpers|vcr_cassettes|\.md|\.ronn}
error_messages = []
Dir.chdir(root) do
@@ -129,7 +129,7 @@ RSpec.describe "The library itself" do
expect(error_messages.compact).to be_well_formed
end
- it "does not include any unresolved merge conflicts" do
+ it "does not include any unresolved merge conflicts", :ruby_repo do
error_messages = []
exempt = %r{lock/lockfile_(bundler_1_)?spec|quality_spec|vcr_cassettes|\.ronn|lockfile_parser\.rb}
Dir.chdir(root) do
@@ -141,7 +141,7 @@ RSpec.describe "The library itself" do
expect(error_messages.compact).to be_well_formed
end
- it "maintains language quality of the documentation" do
+ it "maintains language quality of the documentation", :ruby_repo do
included = /ronn/
error_messages = []
Dir.chdir(root) do
@@ -154,7 +154,7 @@ RSpec.describe "The library itself" do
expect(error_messages.compact).to be_well_formed
end
- it "maintains language quality of sentences used in source code" do
+ it "maintains language quality of sentences used in source code", :ruby_repo do
error_messages = []
exempt = /vendor/
Dir.chdir(root) do
@@ -167,7 +167,7 @@ RSpec.describe "The library itself" do
expect(error_messages.compact).to be_well_formed
end
- it "documents all used settings" do
+ it "documents all used settings", :ruby_repo do
exemptions = %w[
auto_config_jobs
cache_command_is_package
@@ -216,7 +216,7 @@ RSpec.describe "The library itself" do
expect(documented_settings).to be_sorted
end
- it "can still be built" do
+ it "can still be built", :ruby_repo do
Dir.chdir(root) do
begin
gem_command! :build, "bundler.gemspec"
@@ -235,7 +235,7 @@ RSpec.describe "The library itself" do
end
end
- it "does not contain any warnings" do
+ it "does not contain any warnings", :ruby_repo do
Dir.chdir(root) do
exclusions = %w[
lib/bundler/capistrano.rb