2014-02-26 18:50:16 +00:00
|
|
|
require 'rspec'
|
2014-05-25 22:28:38 +00:00
|
|
|
require 'stringio'
|
2014-02-26 18:50:16 +00:00
|
|
|
|
|
|
|
if ENV['COVERAGE']
|
|
|
|
require_relative 'support/simplecov'
|
|
|
|
end
|
|
|
|
|
|
|
|
require_relative '../lib/oga'
|
|
|
|
require_relative 'support/parsing'
|
|
|
|
|
|
|
|
RSpec.configure do |config|
|
|
|
|
config.color = true
|
|
|
|
config.include Oga::ParsingHelpers
|
2014-06-02 10:09:38 +00:00
|
|
|
|
|
|
|
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
|