Skip to content

Commit dc678c2

Browse files
committed
Add context to rakefile regarding testing strategy
1 parent 2a98617 commit dc678c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Rakefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ require File.expand_path("../test/dummy/config/application", __FILE__)
77

88
Rails.application.load_tasks
99

10-
# Clear the Rails-provided test task and define our own
10+
# Clear Rails' test task which expects bin/rails to exist.
11+
# This gem uses a dummy Rails app for testing but doesn't have bin/rails
12+
# since it's a gem, not a standalone Rails application.
1113
Rake::Task["test"].clear if Rake::Task.task_defined?("test")
1214

1315
Rake::TestTask.new(:test) do |t|

0 commit comments

Comments
 (0)