File: test_helper.rb

package info (click to toggle)
ruby-shoulda 4.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 300 kB
  • sloc: ruby: 784; sh: 45; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 494 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'bundler/setup'
require 'pry'
require 'pry-byebug'
require 'minitest/autorun'
require 'minitest/reporters'
require 'warnings_logger'

require_relative '../lib/shoulda'

Minitest::Reporters.use!(Minitest::Reporters::SpecReporter.new)

WarningsLogger::Spy.call(
  project_name: 'shoulda',
  project_directory: Pathname.new('../..').expand_path(__FILE__),
)

Shoulda::Matchers.configure do |config|
  config.integrate do |with|
    with.test_framework :minitest
  end
end

$VERBOSE = true