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