aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/Rakefile
diff options
context:
space:
mode:
authorJeremy Daer <jeremydaer@gmail.com>2016-03-20 17:00:46 -0700
committerJeremy Daer <jeremydaer@gmail.com>2016-03-20 17:00:46 -0700
commit8076d7e19131ce934d47b869fd2ad197358d136b (patch)
tree8cd4dc9f044f53d5707c656a1b2996d2f00d071f /actioncable/Rakefile
parent265b7572c9bff39e3d122266dfc693f74ff44664 (diff)
downloadrails-8076d7e19131ce934d47b869fd2ad197358d136b.tar.gz
rails-8076d7e19131ce934d47b869fd2ad197358d136b.tar.bz2
rails-8076d7e19131ce934d47b869fd2ad197358d136b.zip
Cable: add isolated tests and FAYE=1 test runs
Diffstat (limited to 'actioncable/Rakefile')
-rw-r--r--actioncable/Rakefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/actioncable/Rakefile b/actioncable/Rakefile
index 1d77fc7067..5ba7b7f7f6 100644
--- a/actioncable/Rakefile
+++ b/actioncable/Rakefile
@@ -19,6 +19,14 @@ Rake::TestTask.new do |t|
t.ruby_opts = ["--dev"] if defined?(JRUBY_VERSION)
end
+namespace :test do
+ task :isolated do
+ Dir.glob("test/**/*_test.rb").all? do |file|
+ sh(Gem.ruby, '-w', '-Ilib:test', file)
+ end or raise "Failures"
+ end
+end
+
namespace :assets do
root_path = Pathname.new(dir)
destination_path = root_path.join("lib/assets/compiled")