Skip to content

No tasks shown in thor list with thor/rake_compat for RSpec #619

Open
@FilBot3

Description

@FilBot3

Using the example found here:
https://www.rubydoc.info/github/wycats/thor/Thor/RakeCompat

I am unable to run the RSpec task, or have it show when running thor list.

user01@M1711732 [17:26:32] ~/Documents/development/
$ thor list --debug
user01@M1711732 [17:26:42] ~/Documents/development/
$ thor list --debug --all
user01@M1711732 [17:26:46] ~/Documents/development/
$ cat Thorfile
require 'thor/rake_compat'
require 'rspec/core/rake_task'

class Default < Thor
  include Thor::RakeCompat

  RSpec::Core::RakeTask.new(:spec) do |t|
    t.spec_opts = ['--options', './.rspec']
    t.spec_files = FileList['spec/**/*_spec.rb']
  end
end

user01@M1711732 [17:26:54] ~/Documents/development/
$ thor version
Thor 0.20.0

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