Sha256: 66ba1768df2cede38dd0a451468b7314af5b990fb32573ad8f6454833d1efea7

Contents?: true

Size: 829 Bytes

Versions: 15

Compression:

Stored size: 829 Bytes

Contents

require 'test_helper'

module Vedeu

  module DSL

    class ModelTestClass

      include Vedeu::DSL::Presentation

      def initialize(model, client = nil)
        @model  = model
        @client = client
      end

      protected

      attr_reader :model

    end # ModelTestClass

  end # DSL

  describe Model do
    let(:model_instance) { ModelTestClass.new(attributes) }
    let(:attributes) {
      {
        name: 'hydrogen'
      }
    }

    describe '#deputy' do
      subject { model_instance.deputy }

      it 'returns the DSL instance' do
        subject.must_be_instance_of(DSL::ModelTestClass)
      end
    end

    describe '#store' do
      subject { model_instance.store }

      it 'returns the model' do
        subject.must_be_instance_of(ModelTestClass)
      end
    end

  end # Model

end # Vedeu

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
vedeu-0.4.33 test/lib/vedeu/repositories/model_test.rb
vedeu-0.4.32 test/lib/vedeu/repositories/model_test.rb
vedeu-0.4.31 test/lib/vedeu/repositories/model_test.rb
vedeu-0.4.30 test/lib/vedeu/repositories/model_test.rb
vedeu-0.4.29 test/lib/vedeu/repositories/model_test.rb
vedeu-0.4.28 test/lib/vedeu/repositories/model_test.rb
vedeu-0.4.27 test/lib/vedeu/repositories/model_test.rb
vedeu-0.4.26 test/lib/vedeu/repositories/model_test.rb
vedeu-0.4.25 test/lib/vedeu/repositories/model_test.rb
vedeu-0.4.24 test/lib/vedeu/repositories/model_test.rb
vedeu-0.4.23 test/lib/vedeu/repositories/model_test.rb
vedeu-0.4.22 test/lib/vedeu/repositories/model_test.rb
vedeu-0.4.21 test/lib/vedeu/repositories/model_test.rb
vedeu-0.4.20 test/lib/vedeu/repositories/model_test.rb
vedeu-0.4.19 test/lib/vedeu/repositories/model_test.rb