Sha256: 8e0e382915a8d7478e74cd65097a21e3e6b1ceafcf19e678499bc208f3f6a397

Contents?: true

Size: 438 Bytes

Versions: 2

Compression:

Stored size: 438 Bytes

Contents

require 'spec_helper'

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

describe 'Scenario, Integration' do

  it 'properly sets its child elements' do
    source = ['Scenario: Test scenario',
              '  * a step']
    source = source.join("\n")

    scenario = CucumberAnalytics::Scenario.new(source)
    step = scenario.steps.first

    step.parent_element.should equal scenario
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cucumber_analytics-1.1.1 spec/integration/scenario_integration_spec.rb
cucumber_analytics-1.0.0 spec/integration/scenario_integration_spec.rb