spec/unit/compressors/tgz_spec.rb in omnibus-8.0.15 vs spec/unit/compressors/tgz_spec.rb in omnibus-8.1.15

- old
+ new

@@ -36,28 +36,28 @@ allow(subject).to receive(:shellout!) end describe "#package_name" do it "returns the name of the packager" do - expect(subject.package_name).to eq("project-1.2.3-2.pkg.tar.gz") + expect(subject.package_name).to eq("project-1.2.3-2.x86_64.pkg.tar.gz") end end describe "#write_tgz" do before do - File.open("#{staging_dir}/project-1.2.3-2.pkg", "wb") do |f| + File.open("#{staging_dir}/project-1.2.3-2.x86_64.pkg", "wb") do |f| f.write " " * 1_000_000 end end it "generates the file" do subject.write_tgz - expect("#{staging_dir}/project-1.2.3-2.pkg.tar.gz").to be_a_file + expect("#{staging_dir}/project-1.2.3-2.x86_64.pkg.tar.gz").to be_a_file end it "has the correct content" do subject.write_tgz - file = File.open("#{staging_dir}/project-1.2.3-2.pkg.tar.gz", "rb") + file = File.open("#{staging_dir}/project-1.2.3-2.x86_64.pkg.tar.gz", "rb") contents = file.read file.close expect(contents).to include("\x1F\x8B\b\x00".force_encoding("ASCII-8BIT")) end