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