Skip to content

Commit c29debd

Browse files
bugfix coverage
1 parent f5e27ab commit c29debd

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

spec/docker/secret_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
SingleCov.covered!
66

77
describe Docker::Secret, :requires_swarm_mode do
8+
skip_without_swarm
9+
810
before(:each) do
911
Docker::Secret
1012
.all(filters: { label: ['data-source=docker-api-rspec'] })

spec/spec_helper.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ def skip_slow_test
2929
def skip_without_auth
3030
skip "Disabled because of missing auth" if ENV['DOCKER_API_USER'] == 'debbie_docker'
3131
end
32+
33+
def skip_without_swarm
34+
skip "Disabled because of missing auth" unless ENV['RUN_SWARM_TESTS']
35+
end
3236
end
3337

3438
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
@@ -39,7 +43,4 @@ def skip_without_auth
3943
config.formatter = :documentation
4044
config.tty = true
4145
config.include SpecHelpers
42-
if !ENV['RUN_SWARM_TESTS']
43-
config.filter_run_excluding :requires_swarm_mode
44-
end
4546
end

0 commit comments

Comments
 (0)