Commit e69cca4d329a8ca7edab1b1d40716d42be1b0fb4
1 parent
6057b322
Exists in
master
and in
2 other branches
Cofiguring environment test
Showing
5 changed files
with
26 additions
and
5 deletions
Show diff stats
... | ... | @@ -0,0 +1 @@ |
1 | +--collor | ... | ... |
Gemfile
Rakefile
... | ... | @@ -0,0 +1 @@ |
1 | +remote_user_spec.rb | ... | ... |
spec/spec_helper.rb
1 | +if RUBY_VERSION >= '1.9' | |
2 | + require 'simplecov' | |
3 | + require 'coveralls' | |
4 | + SimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter] | |
5 | + SimpleCov.start do | |
6 | + add_filter '/spec' | |
7 | + #minimum_coverage(90) | |
8 | + end | |
9 | +end | |
1 | 10 | require 'rubygems' |
2 | 11 | require 'bundler' |
3 | -Bundler.setup :default, :development, :test | |
12 | +require 'rspec' | |
13 | +require 'racktest' | |
14 | +require 'omniatuh' | |
15 | +require 'omniatuh/test' | |
4 | 16 | |
5 | -require 'simplecov' | |
6 | -SimpleCov.start | |
17 | +Bundler.setup :default, :development, :test | |
7 | 18 | |
8 | 19 | require 'rack/test' |
9 | 20 | require 'omniauth/remote_user' |
10 | 21 | |
11 | 22 | RSpec.configure do |config| |
12 | 23 | config.include Rack::Test::Methods |
24 | + config.expect_with rspec do |configuration| | |
25 | + configuration.sintax = :expect | |
26 | + end | |
13 | 27 | end | ... | ... |