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.3.4 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.3.3 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.3.2 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.3.1 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.3.0 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/rspec-core-2.8.0/spec/support/config_options_helper.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classiccms-0.2.4.pre vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
horseman-0.0.5 vendor/ruby/1.9.1/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classicCMS-0.2.3 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classicCMS-0.2.2 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classicCMS-0.2.1 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classicCMS-0.2.0 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
classicCMS-0.1.2 vendor/bundle/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/rspec-core-2.8.0/spec/support/config_options_helper.rb