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
classiccms-0.7.5 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.7.4 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.7.3 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/rspec-core-2.11.1/spec/support/config_options_helper.rb
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/rspec-core-2.11.1/spec/support/config_options_helper.rb
classiccms-0.7.2 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.7.1 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.7.0 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/rspec-core-2.10.1/spec/support/config_options_helper.rb
classiccms-0.6.9 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.6.8 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.6.7 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/rspec-core-2.11.1/spec/support/config_options_helper.rb
classiccms-0.6.6 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.6.5 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.6.4 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.6.3 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.6.2 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.6.1 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb
classiccms-0.6.0 vendor/bundle/gems/rspec-core-2.10.0/spec/support/config_options_helper.rb