Sha256: 9331ae93701961a9f8edfa85b4138e52430183dea85b16f5f8bcba756d92455c

Contents?: true

Size: 308 Bytes

Versions: 17

Compression:

Stored size: 308 Bytes

Contents

require 'fakefs/safe'
require 'penchant'
require 'mocha'

World(Mocha::API)

Before('@fakefs') do
  FakeFS.activate!
end

Before('@mocha') do
  mocha_setup
end

After do
  FakeFS::FileSystem.clear
  FakeFS.deactivate!

  begin
    mocha_verify
  ensure
    mocha_teardown
  end

  FileUtils.rm_rf 'tmp'
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
penchant-0.2.29 features/support/env.rb
penchant-0.2.28 features/support/env.rb
penchant-0.2.27 features/support/env.rb
penchant-0.2.26 features/support/env.rb
penchant-0.2.24 features/support/env.rb
penchant-0.2.23 features/support/env.rb
penchant-0.2.22 features/support/env.rb
penchant-0.2.21 features/support/env.rb
penchant-0.2.20 features/support/env.rb
penchant-0.2.19 features/support/env.rb
penchant-0.2.18 features/support/env.rb
penchant-0.2.17 features/support/env.rb
penchant-0.2.16 features/support/env.rb
penchant-0.2.15 features/support/env.rb
penchant-0.2.14 features/support/env.rb
penchant-0.2.13 features/support/env.rb
penchant-0.2.12 features/support/env.rb