Sha256: 4fdaedc589febbf6fd3f719ff33d1e63c06b6be952b804b83e25d4ddbd11bf7e

Contents?: true

Size: 761 Bytes

Versions: 4

Compression:

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

      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 { described.generate(_name) }

        # @todo
        # it { skip }
      end

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

    end # View

  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/view_test.rb
vedeu-0.5.9 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.5.8 test/lib/vedeu/cli/generator/view_test.rb
vedeu-0.5.7 test/lib/vedeu/cli/generator/view_test.rb