工作服报告运行两次

时间:2016-09-06 20:13:04

标签: ruby-on-rails ruby coveralls

在我的Rails Coveralls上安装了4.2.7.1 gem,并将下面的代码添加到spec/spec_helper.rb的顶部:

require 'coveralls'
require 'simplecov'

SimpleCov.formatters = [
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]
Coveralls.wear!

这会导致连身裤发射两次(如下图所示,更完整地显示in this gist)。

[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's default settings.

cocktail
  user can create a cocktail

ingredients
  user can create ingredients

User can sign in and out
  user not signed in and on the homepage
    should see a 'sign in' link and a 'sign up' link
    should not see 'sign out' link
    user signed in on the homepage
      should see 'sign out' link
      should not see a 'sign in' link and a 'sign up' link

Cocktail
  should have many ingredients
  example at ./spec/models/cocktail_spec.rb:5


Finished in 0.25632 seconds (files took 1.62 seconds to load)
10 examples, 0 failures, 0 pending

[Coveralls] Outside the CI environment, not sending data.
[Coveralls] Some handy coverage stats:
  * app/controllers/application_controller.rb => 100%
  * app/controllers/cocktails_controller.rb => 100%
  * app/controllers/home_controller.rb => 100%
  * app/controllers/ingredients_controller.rb => 75%

...


[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's default settings.

cocktail
  user can create a cocktail

ingredients
  user can create ingredients

User can sign in and out
  user not signed in and on the homepage
    should see a 'sign in' link and a 'sign up' link
    should not see 'sign out' link
    user signed in on the homepage
      should see 'sign out' link
      should not see a 'sign in' link and a 'sign up' link

Cocktail
  should have many ingredients
  example at ./spec/models/cocktail_spec.rb:5


Finished in 0.26228 seconds (files took 1.6 seconds to load)
10 examples, 0 failures, 0 pending

[Coveralls] Outside the CI environment, not sending data.
[Coveralls] Some handy coverage stats:
  * app/controllers/application_controller.rb => 100%
  * app/controllers/cocktails_controller.rb => 100%
  * app/controllers/home_controller.rb => 100%
  * app/controllers/ingredients_controller.rb => 75%
  * app/helpers/application_helper.rb => 100%
  * app/helpers/cocktails_helper.rb => 100%
  * app/helpers/home_helper.rb => 100%
  * app/helpers/ingredients_helper.rb => 100%
ex.html.erb_spec.rb => 100%

知道怎么解决吗?

0 个答案:

没有答案