26 lines
485 B
Ruby
26 lines
485 B
Ruby
require 'rspec'
|
|
require 'stringio'
|
|
|
|
if ENV['COVERAGE']
|
|
require_relative 'support/simplecov'
|
|
end
|
|
|
|
require_relative '../lib/oga'
|
|
require_relative 'support/parsing'
|
|
require_relative 'support/evaluation'
|
|
|
|
RSpec.configure do |config|
|
|
config.color = true
|
|
|
|
config.include Oga::ParsingHelpers
|
|
config.include Oga::EvaluationHelpers
|
|
|
|
config.expect_with :rspec do |c|
|
|
c.syntax = [:should, :expect]
|
|
end
|
|
|
|
config.mock_with :rspec do |c|
|
|
c.syntax = [:should, :expect]
|
|
end
|
|
end
|