Sha256: 0c48df299c093ff6527aceca9bcaefff2f82cef41ea722af704e2b73df060d7c

Contents?: true

Size: 428 Bytes

Versions: 71

Compression:

Stored size: 428 Bytes

Contents

require 'fakefs/safe'

module ConfigOptionsHelper
  extend RSpec::SharedContext

  before do
    @orig_spec_opts = ENV["SPEC_OPTS"]
    ENV.delete("SPEC_OPTS")
  end

  after do
    ENV["SPEC_OPTS"] = @orig_spec_opts
  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

71 entries across 65 versions & 9 rubygems

Version Path
gem_repackager-0.1.0 support/gems/rspec-core-2.11.1/spec/support/config_options_helper.rb
classiccms-0.5.17 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.5.16 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.5.15 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.5.14 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.5.13 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/rspec-core-2.11.1/spec/support/config_options_helper.rb
classiccms-0.5.12 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.5.11 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.5.10 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.5.9 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.5.8 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/rspec-core-2.11.1/spec/support/config_options_helper.rb
classiccms-0.5.7 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.5.6 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.5.5 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.5.2 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.5.1 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.5.0 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
rspec-core-2.11.1 spec/support/config_options_helper.rb