Sha256: 334cd4f5971dd97214948e056ea97cb58702418a2987917c14fe4eac9f6f0a12

Contents?: true

Size: 720 Bytes

Versions: 2

Compression:

Stored size: 720 Bytes

Contents

require 'spec_helper'

shared_examples_for 'a raw element' do

  # clazz must be defined by the calling file

  let(:element) { clazz.new }


  it 'has an underlying implementation representation' do
    element.should respond_to(:raw_element)
  end

  it 'can change its underlying implementation representation' do
    expect(element).to respond_to(:raw_element=)

    element.raw_element = :some_raw_element
    element.raw_element.should == :some_raw_element
    element.raw_element = :some_other_raw_element
    element.raw_element.should == :some_other_raw_element
  end

  it 'starts with no underlying implementation representation' do
    element.raw_element.should == nil
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cuke_modeler-0.4.1 spec/unit/raw_element_unit_specs.rb
cuke_modeler-0.4.0 spec/unit/raw_element_unit_specs.rb