Sha256: 7a266896fe0fd01c56453e7c0afecf5fbccc0672fbc4c76dc3c68f84e20943bf

Contents?: true

Size: 628 Bytes

Versions: 7

Compression:

Stored size: 628 Bytes

Contents

require 'spec_helper'

SimpleCov.command_name('Raw') unless RUBY_VERSION.to_s < '1.9.0'

describe 'Raw, Unit' do

  nodule = CucumberAnalytics::Raw

  before(:each) do
    @element = Object.new.extend(nodule)
  end


  it 'has a raw element - #raw_element' do
    @element.should respond_to(:raw_element)
  end

  it 'can get and set its raw element - #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

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cucumber_analytics-1.5.1 spec/unit/raw_unit_spec.rb
cucumber_analytics-1.5.0 spec/unit/raw_unit_spec.rb
cucumber_analytics-1.4.2 spec/unit/raw_unit_spec.rb
cucumber_analytics-1.4.1 spec/unit/raw_unit_spec.rb
cucumber_analytics-1.4.0 spec/unit/raw_unit_spec.rb
cucumber_analytics-1.3.0 spec/unit/raw_unit_spec.rb
cucumber_analytics-1.2.0 spec/unit/raw_unit_spec.rb