Sha256: 064260ada8429c99989e297daa7478f8a7c859c7158d2b3f5b0cb3f5c74283d1
Contents?: true
Size: 882 Bytes
Versions: 1
Compression:
Stored size: 882 Bytes
Contents
require_relative "spec_helper" include CliTester describe "Command line interface" do include GivenFilesystemSpecHelpers use_given_filesystem describe "view" do it "generates view" do dir = given_directory do given_directory_from_data("awesomelib", from: "manifests/awesomelib") given_directory_from_data("newlib", from: "manifests/newlib") end output_dir = given_directory result = run_command(args: ["view", "--offline", "--manifest_dir=#{dir}", "--output-dir=#{output_dir}"]) expect(result).to exit_with_success(/Creating web site/) expect(File.exist?(File.join(output_dir, "index.html"))).to be(true) expect(File.exist?(File.join(output_dir, "libraries", "awesomelib.html"))).to be(true) expect(File.exist?(File.join(output_dir, "libraries", "newlib.html"))).to be(true) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inqlude-0.8.0 | spec/integration/cli_view_spec.rb |