require_relative "spec_helper" include CliTester describe "Command line interface" do include GivenFilesystemSpecHelpers use_given_filesystem(keep_files: true) describe "verify" do it "verifies single manifest" do dir = given_directory do given_directory_from_data("awesomelib", from: "manifests/awesomelib") end result = run_command(args: ["verify", File.join(dir, "awesomelib", "awesomelib.2013-09-08.manifest")]) expect(result).to exit_with_success("Verify manifest awesomelib.2013-09-08.manifest...ok\n") end it "verifies all manifests" do dir = given_directory do given_directory_from_data("awesomelib", from: "manifests/awesomelib") given_directory_from_data("newlib", from: "manifests/newlib") end result = run_command(args: ["verify", "--offline", "--manifest_dir=#{dir}"]) expected_output = <