Sha256: 889ec1755e61416849acbba4179fb24095029f125d67288cecd8222aeccba646

Contents?: true

Size: 638 Bytes

Versions: 4

Compression:

Stored size: 638 Bytes

Contents

require 'rspec-system/spec_helper'

module LocalHelpers
  def proj_root
    Pathname.new(File.expand_path(File.join(File.dirname(__FILE__), '..')))
  end

  def fixture_root
    proj_root + 'spec' + 'fixtures'
  end
end

RSpec.configure do |c|
  c.include ::LocalHelpers

  c.before :suite do
    shell 'echo foobar > /tmp/setupblock'
  end

  # NOTE: this is deprecated, but we do this for legacy testing purposes
  # with the next major release we should remove this capability, and remove
  # the test. Do not use this in your own tests any more!
  c.system_setup_block = proc do
    shell 'echo foobar > /tmp/setupblockold'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rspec-system-1.7.1 spec/spec_helper_system.rb
rspec-system-1.7.0 spec/spec_helper_system.rb
rspec-system-1.6.0 spec/spec_helper_system.rb
rspec-system-1.5.0 spec/spec_helper_system.rb