Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Added projection tests to rake:test
Browse files Browse the repository at this point in the history
  • Loading branch information
arBmind committed Mar 11, 2015
1 parent ab9fff7 commit 143bccf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions disco-railties/lib/rails-disco/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module RailsDisco
class Railtie < Rails::Railtie
rake_tasks do
load 'tasks/db.rake'
load 'tasks/testing.rake'
end
end
end
15 changes: 15 additions & 0 deletions disco-railties/lib/tasks/testing.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'rake/testtask'
require 'rails/test_unit/sub_test_task'

desc 'Runs projection tests'

desc 'Runs test:units, test:functionals, test:generators, test:integration together'
task :test do
Rails::TestTask.test_creator(Rake.application.top_level_tasks).invoke_rake_task
end

namespace :test do
Rails::TestTask.new(projections: "test:prepare") do |t|
t.pattern = "test/projections/**/*_test.rb"
end
end

0 comments on commit 143bccf

Please sign in to comment.