Sha256: 627ecf72512de6ee0f73784b4d89d9a818afcca66ac7bb56407798c1193797d0

Contents?: true

Size: 718 Bytes

Versions: 13

Compression:

Stored size: 718 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' }

      before do
        FileUtils.stubs(:cp_r)
        FileUtils.stubs(:mkdir)
      end

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

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

      describe '#generate' do
        subject { instance.generate }
      end

    end # Application

  end # Generator

end # Vedeu

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
vedeu-0.4.50 test/lib/vedeu/cli/generator/application_test.rb
vedeu-0.4.49 test/lib/vedeu/cli/generator/application_test.rb
vedeu-0.4.48 test/lib/vedeu/cli/generator/application_test.rb
vedeu-0.4.47 test/lib/vedeu/cli/generator/application_test.rb
vedeu-0.4.46 test/lib/vedeu/cli/generator/application_test.rb
vedeu-0.4.45 test/lib/vedeu/cli/generator/application_test.rb
vedeu-0.4.44 test/lib/vedeu/cli/generator/application_test.rb
vedeu-0.4.43 test/lib/vedeu/cli/generator/application_test.rb
vedeu-0.4.42 test/lib/vedeu/cli/generator/application_test.rb
vedeu-0.4.41 test/lib/vedeu/generator/application_test.rb
vedeu-0.4.40 test/lib/vedeu/generator/application_test.rb
vedeu-0.4.39 test/lib/vedeu/generator/application_test.rb
vedeu-0.4.38 test/lib/vedeu/generator/application_test.rb