Sha256: c9018354c3fa39af40126d6a5f9a5b46df4b402e1825b01342d2b15ee7b37dbe
Contents?: true
Size: 759 Bytes
Versions: 1
Compression:
Stored size: 759 Bytes
Contents
require "#{File.dirname(__FILE__)}/../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 expect(@element.respond_to?(:raw_element)).to be true end it 'can get and set its underlying implementation representation - #raw_element, #raw_element=' do @element.raw_element = :some_raw_element expect(@element.raw_element).to eq(:some_raw_element) @element.raw_element = :some_other_raw_element expect(@element.raw_element).to eq(:some_other_raw_element) end it 'starts with no underlying implementation representation' do expect(@element.raw_element).to be_nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumber_analytics-1.6.0 | testing/rspec/spec/unit/raw_element_unit_specs.rb |