Skip to content

Commit 1705045

Browse files
committed
Revert "No need for a separate tasks folder now, really."
This reverts commit 2147fe8.
1 parent 42d50b8 commit 1705045

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

Rakefile

+1-15
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
11
require 'bundler/gem_tasks'
22

3-
# The benchmarking tasks have been merged together and now live at
4-
# github.com/chanks/queue-shootout.
5-
6-
require 'rspec/core/rake_task'
7-
8-
RSpec::Core::RakeTask.new :default do |spec|
9-
spec.pattern = './spec/**/*_spec.rb'
10-
end
11-
12-
# Shortcut to skip the adapter specs, and run only with the basic PG
13-
# connection. I use this occasionally to make sure ActiveRecord isn't loaded,
14-
# so any accidental Rails-isms are caught.
15-
RSpec::Core::RakeTask.new :pg do |spec|
16-
spec.pattern = './spec/unit/*_spec.rb'
17-
end
3+
Dir["./tasks/*.rb"].sort.each &method(:require)

tasks/benchmark.rb

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# The benchmarking tasks have been merged together and now live at github.com/chanks/queue-shootout.

tasks/rspec.rb

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
require 'rspec/core/rake_task'
2+
3+
RSpec::Core::RakeTask.new :default do |spec|
4+
spec.pattern = './spec/**/*_spec.rb'
5+
end
6+
7+
# Shortcut to skip the adapter specs, and run only with the basic PG
8+
# connection. I use this occasionally to make sure ActiveRecord isn't loaded,
9+
# so any accidental Rails-isms are caught.
10+
RSpec::Core::RakeTask.new :pg do |spec|
11+
spec.pattern = './spec/unit/*_spec.rb'
12+
end

0 commit comments

Comments
 (0)