oga/spec/spec_helper.rb

24 lines
449 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'
require_relative 'support/parsing'
require_relative 'support/shared_examples'
2014-02-26 18:50:16 +00:00
RSpec.configure do |config|
config.color = true
config.include Oga::ParsingHelpers
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