Sha256: 5dfc578e1fadbe841fbbe080cc3e291c10a2a2005890b52dd9d0f6130de87831

Contents?: true

Size: 697 Bytes

Versions: 4

Compression:

Stored size: 697 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
    {
      turnip: {
        steps: [ { name: 'Step 1', extra_args: [], keyword: 'When' } ],
        tags: []
      },
      file_path: '/path/to/hoge.feature'
    }
  end
end

shared_context 'turnip_formatter standard step parameters' do
  let(:description) do
    { name: 'StepName', keyword: 'Keyword', extra_args: ['Docstring'] }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
turnip_formatter-0.0.5 spec/support/shared_context_examples.rb
turnip_formatter-0.0.4 spec/support/shared_context_examples.rb
turnip_formatter-0.0.3 spec/support/shared_context_examples.rb
turnip_formatter-0.0.2 spec/support/shared_context_examples.rb