spec/zip/directory_contents_spec.rb in furoshiki-0.1.2 vs spec/zip/directory_contents_spec.rb in furoshiki-0.2.0
- old
+ new
@@ -8,23 +8,23 @@
include_context 'zip'
before :all do
zip_directory_contents = Furoshiki::Zip::DirectoryContents.new input_dir, @output_file
zip_directory_contents.write
- @zip = Zip::ZipFile.open @output_file
+ @zip = Zip::File.open @output_file
end
it "exists" do
- @output_file.should exist
+ expect(@output_file).to exist
end
it "does not include input directory without parents" do
- @zip.entries.map(&:name).should_not include(add_trailing_slash input_dir.basename)
+ expect(@zip.entries.map(&:name)).not_to include(add_trailing_slash input_dir.basename)
end
relative_input_paths(input_dir).each do |path|
it "includes all children of input directory" do
- @zip.entries.map(&:name).should include(path)
+ expect(@zip.entries.map(&:name)).to include(path)
end
end
end
end