Sha256: bcce51eb4ed23c6cf8efa4e9540eac31e7e29cc44e58755ebc2059151e8ef62c

Contents?: true

Size: 788 Bytes

Versions: 8

Compression:

Stored size: 788 Bytes

Contents

# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# Require this file using `require "spec_helper.rb"` to ensure that it is only
# loaded once.
#
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration

require 'dummy/config/environment'

require 'rda'
require 'pry'

RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.run_all_when_everything_filtered = true
  config.filter_run :focus

  def capture(stream)
    begin
      stream = stream.to_s
      eval "$#{stream} = StringIO.new"
      yield
      result = eval("$#{stream}").string
    ensure
      eval("$#{stream} = #{stream.upcase}")
    end

    result
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rda-0.3.0 spec/spec_helper.rb
rda-0.2.0 spec/spec_helper.rb
rda-0.1.0 spec/spec_helper.rb
rda-0.0.6 spec/spec_helper.rb
rda-0.0.4 spec/spec_helper.rb
rda-0.0.3 spec/spec_helper.rb
rda-0.0.2 spec/spec_helper.rb
rda-0.0.1 spec/spec_helper.rb