mirror of
https://github.com/samsonjs/simple_oauth.git
synced 2026-03-25 08:45:54 +00:00
23 lines
497 B
Ruby
23 lines
497 B
Ruby
require 'simplecov'
|
|
require 'coveralls'
|
|
|
|
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
|
SimpleCov::Formatter::HTMLFormatter,
|
|
Coveralls::SimpleCov::Formatter
|
|
]
|
|
SimpleCov.start
|
|
|
|
require 'simple_oauth'
|
|
require 'rspec'
|
|
|
|
def uri_parser
|
|
@uri_parser ||= URI.const_defined?(:Parser) ? URI::Parser.new : URI
|
|
end
|
|
|
|
RSpec.configure do |config|
|
|
config.expect_with :rspec do |c|
|
|
c.syntax = :expect
|
|
end
|
|
end
|
|
|
|
Dir[File.expand_path('../support/**/*.rb', __FILE__)].each { |f| require f }
|