Sha256: 1fa858737328367d8339f7f2cbe108202f590dc988bee706512235bfd9cc44d5

Contents?: true

Size: 698 Bytes

Versions: 29

Compression:

Stored size: 698 Bytes

Contents

require 'test_helper'

module Vedeu

  module Generator

    describe View do

      let(:described) { Vedeu::Generator::View }
      let(:instance)  { described.new(_name) }
      let(:_name)     { 'my_first_view' }

      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 # View

  end # Generator

end # Vedeu

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
vedeu-0.5.0 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.4.65 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.4.64 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.4.63 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.4.62 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.4.61 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.4.60 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.4.59 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.4.58 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.4.57 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.4.56 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.4.55 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.4.54 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.4.53 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.4.52 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.4.51 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.4.50 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.4.49 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.4.48 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.4.47 test/lib/vedeu/cli/generator/view_test.rb