Sha256: 31469c35e6132524fc4ce5562363f0934d51113ceadbb899fd7ae2b456aa0f03

Contents?: true

Size: 705 Bytes

Versions: 2

Compression:

Stored size: 705 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
        subject { described.generate(_name) }
      end

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

    end # View

  end # Generator

end # Vedeu

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.4.37 test/lib/vedeu/generator/view_test.rb
vedeu-0.4.36 test/lib/vedeu/generator/view_test.rb