lib/remarkable/matchers.rb in remarkable-3.0.1 vs lib/remarkable/matchers.rb in remarkable-3.0.2
- old
+ new
@@ -1,18 +1,18 @@
# Remarkable core module
-module Remarkable
- # A module that keeps all matchers added. This is useful because it allows
- # to include matchers in Test::Unit as well.
- module Matchers; end
-
+module Remarkable
+ # A module that keeps all matchers added. This is useful because it allows
+ # to include matchers in Test::Unit as well.
+ module Matchers; end
+
# Helper that includes required Remarkable modules into the given klass.
def self.include_matchers!(base, klass)
- klass.send :extend, Remarkable::Macros
-
+ klass.send :extend, Remarkable::Macros
+
if defined?(base::Matchers)
- klass.send :include, base::Matchers
-
- Remarkable::Matchers.send :extend, base::Matchers
- Remarkable::Matchers.send :include, base::Matchers
- end
+ klass.send :include, base::Matchers
+
+ Remarkable::Matchers.send :extend, base::Matchers
+ Remarkable::Matchers.send :include, base::Matchers
+ end
end
-end
+end