Sha256: 1918a86ecf8db94231d6affb00807c3446ba4d7113a0165b4db1ca9f649da64f

Contents?: true

Size: 643 Bytes

Versions: 1

Compression:

Stored size: 643 Bytes

Contents

require 'spec_helper'

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

describe 'Background, Unit' do

  clazz = CucumberAnalytics::Background

  it_should_behave_like 'a feature element', clazz
  it_should_behave_like 'a nested element', clazz
  it_should_behave_like 'a containing element', clazz
  it_should_behave_like 'a bare bones element', clazz
  it_should_behave_like 'a prepopulated element', clazz
  it_should_behave_like 'a test element', clazz

  it 'can be parsed from stand alone text' do
    source = 'Background: '

    expect { clazz.new(source) }.to_not raise_error
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cucumber_analytics-1.0.0 spec/unit/background_unit_spec.rb