Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions lib/tasks/doctor.rake
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# frozen_string_literal: true

require_relative "../../rakelib/task_helpers"
require_relative "../react_on_rails"
require_relative "../react_on_rails/doctor"

Expand Down Expand Up @@ -38,8 +37,6 @@ rescue LoadError
end

namespace :react_on_rails do
include ReactOnRails::TaskHelpers

desc "Diagnose React on Rails setup and configuration"
task :doctor do
verbose = ENV["VERBOSE"] == "true"
Expand Down
6 changes: 6 additions & 0 deletions spec/lib/react_on_rails/doctor_rake_task_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
expect(Rake::Task.task_defined?("react_on_rails:doctor")).to be true
end

it "can be loaded without requiring missing task_helpers" do
# This test ensures the rake file doesn't try to require excluded files
# that would cause LoadError in packaged gems
expect { load rake_file }.not_to raise_error
end

it "can be invoked without errors" do
# Mock the Doctor class to avoid actual diagnosis
doctor_instance = instance_double(ReactOnRails::Doctor)
Expand Down
Loading