spec/unit/digestable_spec.rb in omnibus-5.5.0 vs spec/unit/digestable_spec.rb in omnibus-5.6.0
- old
+ new
@@ -5,17 +5,17 @@
let(:path) { "/path/to/file" }
let(:io) { StringIO.new }
subject { Class.new { include Digestable }.new }
- describe '#digest' do
+ describe "#digest" do
it "reads the IO in chunks" do
expect(File).to receive(:open).with(path).and_yield(io)
expect(subject.digest(path)).to eq("d41d8cd98f00b204e9800998ecf8427e")
end
end
- describe '#digest_directory' do
+ describe "#digest_directory" do
let(:path) { "/path/to/dir" }
let(:glob) { "#{path}/**/*" }
let(:subdir) { "/path/to/dir/subdir" }
let(:subfile) { "/path/to/dir/subfile" }
let(:io) { StringIO.new }