Sha256: 9d2fa4b7d872b39c6c2cf328968e113f4ad570e2d8f34e36d293367b2c60834a
Contents?: true
Size: 1.19 KB
Versions: 3
Compression:
Stored size: 1.19 KB
Contents
module RSpec::Helpers ENV["LINES"] = ENV["COLUMNS"] = "20" def reset_config Hirb::View.instance_eval do @config = nil end end def capture_stderr(&block) original_stderr = $stderr $stderr = fake = StringIO.new begin yield ensure $stderr = original_stderr end fake.string end def reset_terminal_size ENV["LINES"] = ENV["COLUMNS"] = "20" end end module ::IRB class Irb def initialize(context) @context = context end def output_value; end end end require "pry" RSpec.configure do |config| include RSpec::Helpers config.expect_with :rspec do |expectations| expectations.include_chain_clauses_in_custom_matcher_descriptions = true end config.mock_with :rspec do |mocks| mocks.verify_partial_doubles = true end config.shared_context_metadata_behavior = :apply_to_host_groups config.filter_run_when_matching :focus config.example_status_persistence_file_path = "spec/examples.txt" config.disable_monkey_patching! config.warnings = true if config.files_to_run.one? config.default_formatter = "doc" end config.profile_examples = 5 config.order = :random Kernel.srand config.seed end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hirber-0.8.7 | spec/spec_helper.rb |
hirber-0.8.6 | spec/spec_helper.rb |
hirber-0.8.5 | spec/spec_helper.rb |