We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52a7a3e commit bc2193eCopy full SHA for bc2193e
spec/erb_lint/cache_spec.rb
@@ -42,8 +42,11 @@
42
f.write(cache_file_content)
43
end
44
45
- allow(::RuboCop::ConfigLoader).to(receive(:load_file).and_call_original)
46
- allow(::RuboCop::ConfigLoader).to(receive(:read_file).and_return(rubocop_yml))
+ digest_sha1_double = instance_double(Digest::SHA1)
+ allow(Digest::SHA1).to receive(:new).and_return(digest_sha1_double)
47
+ allow(digest_sha1_double).to receive(:hexdigest).and_return(checksum)
48
+ allow(digest_sha1_double).to receive(:update).and_return(true)
49
+ allow(digest_sha1_double).to receive(:file).and_return(true)
50
51
52
describe "#get" do
0 commit comments