Sha256: e719a63580873df8a291e5a3668ddee8c068a8cf5261ac16799033080125ea91

Contents?: true

Size: 968 Bytes

Versions: 14

Compression:

Stored size: 968 Bytes

Contents

require 'simplecov'
require 'coveralls'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter,
]
SimpleCov.start do
  add_filter File.dirname(__FILE__)
end

require 'faml'

module RenderSpecHelper
  def render_string(str, options = {})
    eval(Faml::Engine.new(options).call(str))
  end
end

RSpec.configure do |config|
  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.filter_run :focus
  config.run_all_when_everything_filtered = true

  config.disable_monkey_patching!

  if config.files_to_run.one?
    config.default_formatter = 'doc'
  end

  if ENV['TRAVIS']
    config.profile_examples = 10
  end

  config.order = :random

  Kernel.srand config.seed

  config.include(RenderSpecHelper, type: :render)
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
faml-0.2.13 spec/spec_helper.rb
faml-0.2.12 spec/spec_helper.rb
faml-0.2.11 spec/spec_helper.rb
faml-0.2.10 spec/spec_helper.rb
faml-0.2.9 spec/spec_helper.rb
faml-0.2.8 spec/spec_helper.rb
faml-0.2.7 spec/spec_helper.rb
faml-0.2.6 spec/spec_helper.rb
faml-0.2.5 spec/spec_helper.rb
faml-0.2.4 spec/spec_helper.rb
faml-0.2.3 spec/spec_helper.rb
faml-0.2.2 spec/spec_helper.rb
faml-0.2.1 spec/spec_helper.rb
faml-0.2.0 spec/spec_helper.rb