Sha256: f167a47255d13d56682015e4ef9b76c0ae8ddda085f8274fcc86929d6eb33e5f

Contents?: true

Size: 744 Bytes

Versions: 1

Compression:

Stored size: 744 Bytes

Contents

require 'spec_helper'

shared_examples_for 'a raw element' do

  # clazz must be defined by the calling file

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

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

  it 'can get and set its underlying implementation representation - #raw_element, #raw_element=' do
    @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

1 entries across 1 versions & 1 rubygems

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