summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-04 06:33:17 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-04 15:37:01 +0100
commit63f42960ff1377537dc539db9c667d2e0fcf4d7a (patch)
tree33e05b3ae1496d3759b602f0d31ff175a6228485
parente70d0f3d02c8c084b61969e71d1fa28a15a6d0ca (diff)
downloadbundler-skip_permission_tests_on_windows.tar.gz
Ignore tests needing file permissions on Windowsskip_permission_tests_on_windows
-rw-r--r--spec/commands/clean_spec.rb2
-rw-r--r--spec/commands/doctor_spec.rb2
-rw-r--r--spec/support/filters.rb1
3 files changed, 3 insertions, 2 deletions
diff --git a/spec/commands/clean_spec.rb b/spec/commands/clean_spec.rb
index 5cc97de912..471ddb0805 100644
--- a/spec/commands/clean_spec.rb
+++ b/spec/commands/clean_spec.rb
@@ -536,7 +536,7 @@ RSpec.describe "bundle clean" do
expect(out).to include("rack (1.0.0)")
end
- describe "when missing permissions" do
+ describe "when missing permissions", :permissions do
before { ENV["BUNDLE_PATH__SYSTEM"] = "true" }
let(:system_cache_path) { system_gem_path("cache") }
after do
diff --git a/spec/commands/doctor_spec.rb b/spec/commands/doctor_spec.rb
index d829f00092..e62430d215 100644
--- a/spec/commands/doctor_spec.rb
+++ b/spec/commands/doctor_spec.rb
@@ -87,7 +87,7 @@ RSpec.describe "bundle doctor" do
expect(@stdout.string).not_to include("No issues")
end
- context "when home contains files that are not owned by the current process" do
+ context "when home contains files that are not owned by the current process", :permissions do
before(:each) do
allow(@stat).to receive(:uid) { 0o0000 }
end
diff --git a/spec/support/filters.rb b/spec/support/filters.rb
index 4ce6648cdc..564bdece13 100644
--- a/spec/support/filters.rb
+++ b/spec/support/filters.rb
@@ -40,6 +40,7 @@ RSpec.configure do |config|
config.filter_run_excluding :bundler => RequirementChecker.against(Bundler::VERSION.split(".")[0])
config.filter_run_excluding :ruby_repo => !ENV["GEM_COMMAND"].nil?
config.filter_run_excluding :no_color_tty => Gem.win_platform? || !ENV["GITHUB_ACTION"].nil?
+ config.filter_run_excluding :permissions => Gem.win_platform?
config.filter_run_when_matching :focus unless ENV["CI"]
end