Sha256: 09fcb3ddadfbf3004d12cf93cd24de3086b2628820c5f949a021e408d9e2d8c4
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
require "spec_helper" describe "`tetra generate-spec`", type: :aruba do it "outputs a warning if source files are not found" do archive_contents = File.read(File.join("spec", "data", "commons-collections4-4.1-src.zip")) write_file("commons-collections.zip", archive_contents) run_simple("tetra init --no-archive commons-collections") cd("commons-collections") cd("src") run_simple("unzip ../../commons-collections.zip") cd("commons-collections4-4.1-src") run_simple("tetra change-sources --no-archive") expect(output_from("tetra change-sources --no-archive")).to include("New sources committed") @aruba_timeout_seconds = 240 run_interactive("tetra dry-run") type("mvn package -DskipTests") type("\u{0004}") # ^D (Ctrl+D), terminates bash with exit status 0 expect(all_output).to include("[INFO] BUILD SUCCESS") run_simple("tetra generate-spec") expect(output_from("tetra generate-spec")).to include("Warning: source archive not found, package will not build") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tetra-2.0.5 | spec/lib/coarse/generate_spec_subcommand_spec.rb |
tetra-2.0.4 | spec/lib/coarse/generate_spec_subcommand_spec.rb |