Sha256: 5eefe45bfea8d1db855d2c624e7b8d6a071ff111fc392eab11759de833bff24d

Contents?: true

Size: 715 Bytes

Versions: 38

Compression:

Stored size: 715 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/helper')
require 'padrino-gen/generators/cli'

describe "Cli" do
  def setup
    @apptmp = "#{Dir.tmpdir}/padrino-tests/#{SecureRandom.hex}"
    `mkdir -p #{@apptmp}`
  end

  def teardown
    `rm -rf #{@apptmp}`
  end

  describe 'the cli' do

    it 'should fail without arguments' do
      out, err = capture_io { generate(:cli) }
      assert_match(/Please specify generator to use/, out)
    end

    it 'should work correctly if we have a project' do
      capture_io { generate(:project, 'sample_project', "--root=#{@apptmp}") }
      capture_io { generate(:cli, "--root=#{@apptmp}/sample_project") }
      skip "Make a great asserition"
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
padrino-gen-0.16.0.pre3 test/test_cli.rb
padrino-gen-0.16.0.pre2 test/test_cli.rb
padrino-gen-0.15.3 test/test_cli.rb
padrino-gen-0.15.2 test/test_cli.rb
padrino-gen-0.15.1 test/test_cli.rb
padrino-gen-0.15.0 test/test_cli.rb
padrino-gen-0.14.4 test/test_cli.rb
padrino-gen-0.14.3 test/test_cli.rb
padrino-gen-0.12.9 test/test_cli.rb
padrino-gen-0.14.2 test/test_cli.rb
padrino-gen-0.13.3.4 test/test_cli.rb
padrino-gen-0.14.1.1 test/test_cli.rb
padrino-gen-0.14.1 test/test_cli.rb
padrino-gen-0.14.0.2 test/test_cli.rb
padrino-gen-0.14.0.1 test/test_cli.rb
padrino-gen-0.14.0 test/test_cli.rb
padrino-gen-0.14.0.rc2 test/test_cli.rb
padrino-gen-0.14.0.rc1 test/test_cli.rb
padrino-gen-0.13.3.3 test/test_cli.rb
padrino-gen-0.13.3.2 test/test_cli.rb