Skip to content

Using rake spec doesn't exclude files #181

@gcentauri

Description

@gcentauri

I could be doing something wrong here, but I have a set of spec files to be excluded and the rake spec task does that for me. Works fine from the terminal. However, when i set rspec-use-rake-when-possible to non-nil, it doesn't seem to work.

I can see it showing up as a cli option in the compilation buffer:

-*- mode: rspec-compilation; default-directory: "~/cardflight/core/" -*-
RSpec Compilation started at Wed Nov 28 13:24:23

bundle exec rake spec SPEC_OPTS='--options /Users/gshang/my/project/.rspec' SPEC='/Users/gshang/my/project/spec'
/Users/gshang/.rvm/rubies/ruby-2.3.6/bin/ruby -I/Users/gshang/.rvm/gems/ruby-2.3.6/gems/rspec-core-3.7.0/lib:/Users/gshang/.rvm/gems/ruby-2.3.6/gems/rspec-support-3.7.0/lib /Users/gshang/.rvm/gems/ruby-2.3.6/gems/rspec-core-3.7.0/exe/rspec /Users/gshang/my/project/spec --exclude-pattern spec/core/\{example,foo\}/\*\*/\*_spec.rb

But it hits the example and foo files that are intended to be excluded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions