Add "exec" action to allow execution of arbitrary commands with the app's environment.

This commit is contained in:
Matt Griffin
2012-01-04 15:22:10 -05:00
parent fff15bc627
commit a34bc59721
4 changed files with 88 additions and 0 deletions
+10
View File
@@ -63,6 +63,16 @@ def example_export_file(filename)
data
end
def preserving_env
old_env = ENV.to_hash
begin
yield
ensure
ENV.clear
ENV.update(old_env)
end
end
RSpec.configure do |config|
config.color_enabled = true
config.include FakeFS::SpecHelpers