Skip to content

Commit be975b0

Browse files
committed
fix cops in code
1 parent d969106 commit be975b0

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

secrets-manager.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ Gem::Specification.new do |spec|
1818

1919
# Specify which files should be added to the gem when it is released.
2020
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
21+
spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
2222
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
2323
end
2424
spec.bindir = "exe"
2525
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
2626
spec.require_paths = ["lib"]
2727

2828
spec.add_dependency "concurrent-ruby", ">= 1.0"
29-
spec.add_dependency 'aws-sdk-secretsmanager', '>= 1.31.0'
30-
spec.add_dependency 'activesupport', '~> 5.0', '>= 5.0.0.1'
29+
spec.add_dependency "aws-sdk-secretsmanager", ">= 1.31.0"
30+
spec.add_dependency "activesupport", "~> 5.0", ">= 5.0.0.1"
3131

3232
spec.add_development_dependency "bundler", "~> 2.0"
3333
spec.add_development_dependency "rake", "~> 10.0"

spec/manager_spec.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,15 @@
390390

391391
it_behaves_like("a result with processed paths")
392392

393-
context "sets the cache" do
393+
context "when validating the cache" do
394394
let(:path) { "global/#{Faker::Lorem.word}" }
395395
let(:resolved_path) { "#{path}" }
396396

397-
it { expect_any_instance_of(described_class::Cache).to receive(:set).with(resolved_path, value, expires_at.to_s.to_i); fetch }
397+
it "runs the cache setting process" do
398+
expect_any_instance_of(described_class::Cache).to receive(:set).with(resolved_path, value, expires_at.to_s.to_i)
399+
400+
fetch
401+
end
398402
end
399403
end
400404
end

0 commit comments

Comments
 (0)