Sha256: 4397a7dfab132d033c71af84447fbe23c0d0c05de2ae83d360d6e45506a20a39
Contents?: true
Size: 626 Bytes
Versions: 3
Compression:
Stored size: 626 Bytes
Contents
require 'coveralls' Coveralls.wear! $:.unshift(File.join(File.dirname(__FILE__), "..", "lib")) require 'stringio' require File.expand_path('../../lib/preek', __FILE__) 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 config.order = 'random' config.fail_fast = true 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
preek-0.1.3 | spec/spec_helper.rb |
preek-0.1.2 | spec/spec_helper.rb |
preek-0.1.1 | spec/spec_helper.rb |