Sha256: 15a924c9ef2c8b141dc98e41f8db6ebbd53ca135ffc262833b906f5fc1821980

Contents?: true

Size: 703 Bytes

Versions: 11

Compression:

Stored size: 703 Bytes

Contents

require 'spec_helper'

shared_examples_for 'a raw element' do |clazz|

  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

11 entries across 11 versions & 2 rubygems

Version Path
cuke_modeler-0.2.0 spec/unit/raw_element_unit_specs.rb
cuke_modeler-0.1.0 spec/unit/raw_element_unit_specs.rb
cuke_modeler-0.0.2 spec/unit/raw_element_unit_specs.rb
cuke_modeler-0.0.1 spec/unit/raw_element_unit_specs.rb
cucumber_analytics-1.5.1 spec/unit/raw_element_unit_specs.rb
cucumber_analytics-1.5.0 spec/unit/raw_element_unit_specs.rb
cucumber_analytics-1.4.2 spec/unit/raw_element_unit_specs.rb
cucumber_analytics-1.4.1 spec/unit/raw_element_unit_specs.rb
cucumber_analytics-1.4.0 spec/unit/raw_element_unit_specs.rb
cucumber_analytics-1.3.0 spec/unit/raw_element_unit_specs.rb
cucumber_analytics-1.2.0 spec/unit/raw_element_unit_specs.rb