File: spec_helper.rb

package info (click to toggle)
ruby-semverse 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 192 kB
  • ctags: 45
  • sloc: ruby: 1,170; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 541 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#require 'rubygems'
#require 'bundler'
require 'spork'

Spork.prefork do
  require 'rspec'

  APP_ROOT = File.expand_path('../../', __FILE__)

  Dir[File.join(APP_ROOT, "spec/support/**/*.rb")].each {|f| require f}

  RSpec.configure do |config|
    config.mock_with :rspec
    config.treat_symbols_as_metadata_keys_with_true_values = true
    config.filter_run focus: true
    config.run_all_when_everything_filtered = true

    # Run specs in a random order
    config.order = :random
  end
end

Spork.each_run do
  require 'semverse'
end