penchant/features/support/env.rb
2012-06-06 11:20:02 -04:00

28 lines
315 B
Ruby

require 'fakefs/safe'
require 'penchant'
require 'mocha'
World(Mocha::Standalone)
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