Sha256: 23f2aaca3d4ab2273de65312c00c820dd646d88c8054b3b3b7277aa5e2571f72

Contents?: true

Size: 779 Bytes

Versions: 2

Compression:

Stored size: 779 Bytes

Contents

# frozen_string_literal: true

require 'coveralls'
require 'rspec/core/sandbox'
require 'table_beet'
Coveralls.wear!

FIXTURES_PATH = File.dirname(__FILE__) + '/fixtures/steps'
OUTPUT_PATH = File.dirname(__FILE__) + '/stepdoc'

RSpec.configure do |c|
  c.around(:each) do |ex|
    #
    # Reset the added steps
    #   on https://github.com/jnicklas/turnip/blob/v1.2.4/lib/turnip/dsl.rb#L21
    #
    RSpec::Core::Sandbox.sandboxed do |config|
      #
      # Sandbox config does not included Turnip::Steps yet.
      #
      config.include Turnip::Steps, turnip: true

      ex.run

      #
      # Reset the addes 'global' steps
      #
      Turnip::Steps.instance_methods.each do |method|
        Turnip::Steps.module_eval { undef_method method }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
table_beet2-0.0.5 spec/spec_helper.rb
table_beet2-0.0.4 spec/spec_helper.rb