Sha256: 2688a8721b610ba5341a115623820c14d803ee22842fc6b5690486e426975fe0

Contents?: true

Size: 951 Bytes

Versions: 2

Compression:

Stored size: 951 Bytes

Contents

# -*- coding: utf-8 -*-
require File.join(File.dirname(__FILE__), "..", "..", "spec_helper")

describe CliTree do

  it "should accepts --format html_partition" do
    captured = capture_output do
      args = %w{--format html_partition}
      args << File.join(FIXTURES, "test_dir_1")
      CliTree.new.parse_args(args)
    end
    captured.out.should match  /d3.layout.partition/
  end

  it "should accepts --format html_tree" do
    captured = capture_output do
      args = %w{--format html_tree}
      args << File.join(FIXTURES, "test_dir_1")
      CliTree.new.parse_args(args)
    end
    captured.out.should match  /d3.layout.tree/
  end

  it "should accepts --format html_treemap" do
    captured = capture_output do
      args = %w{--format html_treemap}
      args << File.join(FIXTURES, "test_dir_1")
      CliTree.new.parse_args(args)
    end
    captured.out.should match  /d3.layout.treemap/
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tree.rb-0.3.11 spec/tree_rb/cli/cli_tree_d3js_spec.rb
tree.rb-0.3.10 spec/tree_rb/cli/cli_tree_d3js_spec.rb