Skip to content
This repository was archived by the owner on Oct 16, 2019. It is now read-only.
This repository was archived by the owner on Oct 16, 2019. It is now read-only.

Error when using rake task #59

@timting

Description

@timting

I tried putting the config.include AllureRSpec::Adaptor in both spec_helper.rb and rails_helper.rb. When I try to run rspec spec\models, it runs successfully, outputting xml data. When I try to use one of the rake tasks, i.e. rake spec:models, it fails with the following error:

NameError: uninitialized constant RSpec::Support
/Users/timothy/.rvm/gems/ruby-2.1.0@skillet/gems/rspec-core-3.3.2/lib/rspec/core/formatters/base_formatter.rb:1:in `<top (required)>'
/Users/timothy/.rvm/gems/ruby-2.1.0@skillet/gems/allure-rspec-0.7.4/lib/allure-rspec/formatter.rb:1:in `<top (required)>'
/Users/timothy/.rvm/gems/ruby-2.1.0@skillet/gems/allure-rspec-0.7.4/lib/allure-rspec.rb:3:in `<top (required)>'

Looking into this, it seems to be trying to load a specific formatter before RSpec::Core has been loaded.

I'm running RSpec 3.3.0 and Rails 4.1.13. What am I doing wrong? Let me know if you need any more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions