Sha256: 5d0e89a6305779e445e506934bd53021395ec0c080edf9392ccbf00b93a87c0c

Contents?: true

Size: 963 Bytes

Versions: 1

Compression:

Stored size: 963 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
    expect(captured.out).to 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
    expect(captured.out).to 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
    expect(captured.out).to match  /d3.layout.treemap/
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tree.rb-0.3.13 spec/tree_rb/cli/cli_tree_d3js_spec.rb