Sha256: 58a50eba94482f188cb20f370ec93254ba705c521d16888846db4b56709c2290
Contents?: true
Size: 697 Bytes
Versions: 1
Compression:
Stored size: 697 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/helper') require 'padrino-gen/generators/cli' class TestCli < Test::Unit::TestCase def setup `rm -rf /tmp/sample_project` @cli = Padrino::Generators::Cli.dup @project = Padrino::Generators::Project.dup end context 'the cli' do should "fail without arguments" do output = silence_logger { @cli.start } assert_match "Please specify generator to use", output end should "work correctly if we have a project" do silence_logger { @project.start(['sample_project', '--root=/tmp']) } assert_nothing_raised { silence_logger { @cli.start(['--root=/tmp/sample_project']) } } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
padrino-gen-0.9.9 | test/test_cli.rb |