We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94fb29c commit b703327Copy full SHA for b703327
lib/guard/cucumber/notification_formatter.rb
@@ -1,6 +1,15 @@
1
# Conditionally require this because it's run outside Guard
2
-# TODO: MOVE THIS OUTSIDE THE FORMATTER!!!!
3
-require "guard/notifier"
+#
+if Object.const_defined?(:Guard)
4
+ # TODO: MOVE THIS OUTSIDE THE FORMATTER!!!!
5
+ # TODO: (call notify() in Guard::Cucumber, not here in formatter
6
+
7
+ # If notifier is defined it's likely Guard::Compat::Plugin's stub
8
+ unless Guard.const_defined?(:Notifier)
9
+ require "guard"
10
+ require "guard/notifier"
11
+ end
12
+end
13
14
require "cucumber"
15
require "guard/compat/plugin"
0 commit comments