summaryrefslogtreecommitdiff
path: root/test/support/celluloid_test.rb
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-10-02 15:05:02 +0200
committerAzul <azul@riseup.net>2016-10-02 15:05:02 +0200
commit5967c4a568aff2c5e73e3ab933aa68d25387aeb1 (patch)
tree2edc9f7b40d7b04e4cf739e6e92b200f93cd57e7 /test/support/celluloid_test.rb
parentab31d9ca7dca20c873a7240482d1736d0f6b6dae (diff)
silence Celluloid.logger in tests
Introduced CelluloidTest as a test class for all tests that depend on Celluloid being up and running.
Diffstat (limited to 'test/support/celluloid_test.rb')
-rw-r--r--test/support/celluloid_test.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/support/celluloid_test.rb b/test/support/celluloid_test.rb
new file mode 100644
index 0000000..ddcfcbb
--- /dev/null
+++ b/test/support/celluloid_test.rb
@@ -0,0 +1,14 @@
+class CelluloidTest < Minitest::Test
+
+ def setup
+ super
+ Celluloid.boot
+ Celluloid.logger = nil
+ end
+
+ def teardown
+ Celluloid.shutdown
+ super
+ end
+
+end