Skip to content

Task definition can't be in lib/tasks/ #12

@rylnd

Description

@rylnd
# lib/tasks/dredd_rack.rake
require 'dredd/rack'

Dredd::Rack::RakeTask.new

causes the same symptoms as described in #8.

The reason is that the hook that loads all these tasks, Rails.application.load_tasks, seems to load local tasks before the environment task, such that this condition is never met.

I wish I had the time and/or knowledge to figure out how to make this work. For now, placing the task definition after the load_tasks hook in the Rakefile is a reasonable workaround.

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