From 5681553ca085188f58cfa29bf771ef8bb6d704a9 Mon Sep 17 00:00:00 2001 From: Benjamin Meichsner Date: Wed, 18 Sep 2013 18:04:40 +0200 Subject: [PATCH] Avoid connecting to redis backend in test environment. This makes it also possible to test if certain background task are doing what they should do. --- config/initializers/resque.rb | 1 + 1 file changed, 1 insertion(+) create mode 100644 config/initializers/resque.rb diff --git a/config/initializers/resque.rb b/config/initializers/resque.rb new file mode 100644 index 00000000..28001613 --- /dev/null +++ b/config/initializers/resque.rb @@ -0,0 +1 @@ +Resque.inline = Rails.env.test?