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

Version Path
classiccms-0.7.5 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.7.4 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.7.3 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.7.2 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.7.1 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.7.0 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.6.9 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.6.8 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.6.7 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.6.6 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.6.5 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.6.4 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.6.3 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.6.2 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.6.1 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.6.0 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.5.17 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.5.16 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.5.15 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.5.14 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb