oga/spec/spec_helper.rb

28 lines
585 B
Ruby
Raw Normal View History

2014-02-26 18:50:16 +00:00
require 'rspec'
require 'stringio'
2014-02-26 18:50:16 +00:00
if ENV['COVERAGE']
require_relative 'support/simplecov'
end
require_relative '../lib/oga'
2015-03-22 21:50:03 +00:00
require_relative 'support/parsing_helpers'
require_relative 'support/evaluation_helpers'
require_relative 'support/threading_helpers'
2014-02-26 18:50:16 +00:00
RSpec.configure do |config|
config.color = true
2014-11-04 22:33:42 +00:00
2014-02-26 18:50:16 +00:00
config.include Oga::ParsingHelpers
2014-11-04 22:33:42 +00:00
config.include Oga::EvaluationHelpers
config.include Oga::ThreadingHelpers
config.expect_with :rspec do |c|
c.syntax = [:should, :expect]
end
config.mock_with :rspec do |c|
c.syntax = [:should, :expect]
end
2014-02-26 18:50:16 +00:00
end