Sha256: e0a80d9afaee2c4f711d89602461ac69a76b41a69546edfdc4bce56317deaa6a

Contents?: true

Size: 387 Bytes

Versions: 1

Compression:

Stored size: 387 Bytes

Contents

require 'spec_helper'

shared_examples_for 'a containing element' do

  # clazz must be defined by the calling file

  before(:each) do
    @element = clazz.new
  end

  it 'has children - #contains' do
    @element.should respond_to(:contains)
  end

  it 'returns a collection of children - #contains' do
    @element.contains.is_a?(Array).should be_true
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cuke_modeler-0.3.0 spec/unit/containing_element_unit_specs.rb