Permalink
Browse files

dev: align use of FakeFS

  • Loading branch information...
1 parent 999d04c commit 8e816eb16164e18efc5a65ca60c6961b8d86a4e2 @dchelimsky dchelimsky committed Apr 21, 2012
@@ -1,7 +1,7 @@
require 'spec_helper'
require 'ostruct'
-describe RSpec::Core::ConfigurationOptions do
+describe RSpec::Core::ConfigurationOptions, :fakefs do
include ConfigOptionsHelper
it "warns when HOME env var is not set", :unless => (RUBY_PLATFORM == 'java') do
@@ -1,6 +1,6 @@
require "spec_helper"
-describe RSpec::Core::DrbOptions do
+describe RSpec::Core::DrbOptions, :fakefs do
include ConfigOptionsHelper
describe "#drb_argv" do
@@ -4,15 +4,12 @@ module ConfigOptionsHelper
extend RSpec::SharedContext
before do
- FakeFS.activate!
@orig_spec_opts = ENV["SPEC_OPTS"]
ENV.delete("SPEC_OPTS")
end
after do
- FakeFS::FileSystem.clear
ENV["SPEC_OPTS"] = @orig_spec_opts
- FakeFS.deactivate!
end
def config_options_object(*args)

0 comments on commit 8e816eb

Please sign in to comment.