File: helper.rb

package info (click to toggle)
ruby-omniauth-oauth2 1.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 160 kB
  • sloc: ruby: 318; makefile: 3
file content (35 lines) | stat: -rw-r--r-- 846 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$LOAD_PATH.unshift File.expand_path("..", __FILE__)
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)

#if RUBY_VERSION >= "1.9"
#  require "simplecov"
#  require "simplecov-lcov"
#  require "coveralls"

#  SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true

#  SimpleCov.formatters = [
#    SimpleCov::Formatter::HTMLFormatter,
#    SimpleCov::Formatter::LcovFormatter,
#    Coveralls::SimpleCov::Formatter
#  ]

#  SimpleCov.start do
#    minimum_coverage(78.48)
#  end
#end

require "rspec"
require "rack/test"
require "webmock/rspec"
require "omniauth"
require "omniauth-oauth2"

RSpec.configure do |config|
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end
  config.extend OmniAuth::Test::StrategyMacros, :type => :strategy
  config.include Rack::Test::Methods
  config.include WebMock::API
end