Sha256: fd46e54feba0faf085e2ee0ba96a82fb32150a2bffafa5ee079641b89331203b

Contents?: true

Size: 458 Bytes

Versions: 3

Compression:

Stored size: 458 Bytes

Contents

require 'spec_helper'

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

describe 'Background, Integration' do

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

    background = CucumberAnalytics::Background.new(source)
    step = background.steps.first

    step.parent_element.should equal background
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cucumber_analytics-1.2.0 spec/integration/background_integration_spec.rb
cucumber_analytics-1.1.1 spec/integration/background_integration_spec.rb
cucumber_analytics-1.0.0 spec/integration/background_integration_spec.rb