Sha256: b639d46296f431be4723c2152ce591497f29428464ce52a350b1285efccb448d

Contents?: true

Size: 755 Bytes

Versions: 5

Compression:

Stored size: 755 Bytes

Contents

require 'test_helper'

module Vedeu

  module CLI

    describe Application do

      let(:described) { Vedeu::CLI::Application }
      let(:instance)  { described.new(_name) }
      let(:_name)     { 'my_first_app' }

      describe '#initialize' do
        it { instance.must_be_instance_of(described) }
        it { instance.instance_variable_get('@name').must_equal(_name) }
      end

      describe '.generate' do
        # before do
        #   FileUtils.stubs(:cp_r)
        #   FileUtils.stubs(:mkdir)
        # end

        subject { instance.generate(_name) }

        # @todo Add more tests.
      end

      describe '#generate' do
        it { instance.must_respond_to(:generate) }
      end

    end # Application

  end # CLI

end # Vedeu

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vedeu_cli-0.0.5 test/lib/vedeu/cli/application_test.rb
vedeu_cli-0.0.4 test/lib/vedeu/cli/application_test.rb
vedeu_cli-0.0.3 test/lib/vedeu/cli/application_test.rb
vedeu_cli-0.0.2 test/lib/vedeu/cli/application_test.rb
vedeu_cli-0.0.1 test/lib/vedeu/cli/application_test.rb