Sha256: b23cb639e89a2d05e24def0fd3bff6e12a7035ccc26f1526f203bd3453771376

Contents?: true

Size: 693 Bytes

Versions: 1

Compression:

Stored size: 693 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require 'convert_theme/cli'

describe ConvertTheme::CLI, "execute" do
  before(:each) do
    theme = stub
    ConvertTheme.should_receive(:new).
      with(:template_root => "path/to/app", 
        :content_id => "content_box",
        :index_path => "root.html",
        :template_type => "haml"
      ).
      and_return(theme)
    theme.should_receive(:apply_to).with(".")
    @stdout = stdout do |stdout_io|
      ConvertTheme::CLI.execute(stdout_io, %w[path/to/app .
        --content_id=content_box
        --index_path=root.html
        --haml
      ])
    end
  end
  
  it("parses arguments and run generator") { }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
convert_theme-0.2.0 spec/convert_theme_cli_spec.rb