Sha256: 5fd1547c7afa406d5a97b8cb112bf3e695ae6b6c4d1aa33db675c2a66fee0bda

Contents?: true

Size: 726 Bytes

Versions: 3

Compression:

Stored size: 726 Bytes

Contents

require "docks"
require "awesome_print"
require "rspec-html-matchers"

Docks::Messenger.quiet

RSpec.configure do |config|
  config.include RSpecHtmlMatchers

  config.order = "random"

  config.mock_with :rspec do |c|
    c.syntax = :expect
  end

  current_dir = FileUtils.pwd

  config.around do |example|
    Docks::Tags.register_bundled_tags

    example.run

    FileUtils.cd(current_dir)

    # Forces any partially-run, multi-stage processing to finish
    Docks::Process.process(Docks::Containers::Pattern.new)
    Docks::Process.process(Docks::Containers::PatternLibrary.new)

    Docks.config.restore_defaults
    Docks::Languages.send(:clean)
    Docks::Tags.send(:clean)
    Docks::Process.send(:clean)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
docks_app-0.0.3 spec/spec_helper.rb
docks_app-0.0.2 spec/spec_helper.rb
docks_app-0.0.1 spec/spec_helper.rb