Sha256: 5c8ff67c4cbca1b66b4ca3b238dc08313304eea5e409b962f55c10c0e1d192df

Contents?: true

Size: 333 Bytes

Versions: 2

Compression:

Stored size: 333 Bytes

Contents

require 'spec_helper'

shared_examples_for 'a containing model' do

  # clazz must be defined by the calling file

  let(:model) { clazz.new }


  it 'has children' do
    expect(model).to respond_to(:children)
  end

  it 'returns a collection of children' do
    expect(model.children).to be_an(Array)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cuke_modeler-1.0.1 spec/unit/shared/containing_models_unit_specs.rb
cuke_modeler-1.0.0 spec/unit/shared/containing_models_unit_specs.rb