Sha256: ba2dcde1c6dc81c7f83fe1baf3f89eaa377f96bdcdf3996e9d6819debe367c52

Contents?: true

Size: 506 Bytes

Versions: 1

Compression:

Stored size: 506 Bytes

Contents

shared_context "turnip_formatter scenario setup" do |proc|
  let(:example) do
    group = ::RSpec::Core::ExampleGroup.describe('Feature').describe('Scenario')
    _example = group.example('example', metadata, &proc)
    group.run(NoopObject.new)
    _example
  end
end

shared_context 'turnip_formatter passed scenario metadata' do
  let(:metadata) do
    {
      steps: { descriptions: ['Step 1'], docstrings: [[]], keywords: ['When'], tags: [] },
      file_path: '/path/to/hoge.feature'
    }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
turnip_formatter-0.0.1 spec/support/shared_context_examples.rb