Sha256: 9bd0f6062ad0f9dc3f1127c715af57cd85c2f2b4b6008cdeff3a7a64c0e1bab2

Contents?: true

Size: 773 Bytes

Versions: 4

Compression:

Stored size: 773 Bytes

Contents

require 'test_helper'

module Vedeu

  module Generator

    describe Application do

      let(:described) { Vedeu::Generator::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 # Generator

end # Vedeu

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vedeu-0.5.10 test/lib/vedeu/cli/generator/application_test.rb
vedeu-0.5.9 test/lib/vedeu/cli/generator/application_test.rb
vedeu-0.5.8 test/lib/vedeu/cli/generator/application_test.rb
vedeu-0.5.7 test/lib/vedeu/cli/generator/application_test.rb