Sha256: 850459b3f6792087c68b01e0c3ba694e0d65330c0bf58b0abab964aacdd1fefb
Contents?: true
Size: 501 Bytes
Versions: 67
Compression:
Stored size: 501 Bytes
Contents
require 'fakefs/safe' 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) coo = RSpec::Core::ConfigurationOptions.new(args) coo.parse_options coo end def parse_options(*args) config_options_object(*args).options end end
Version data entries
67 entries across 66 versions & 6 rubygems