lib/shoulda/matchers/configuration.rb in shoulda-matchers-4.0.1 vs lib/shoulda/matchers/configuration.rb in shoulda-matchers-4.1.0
- old
+ new
@@ -4,17 +4,28 @@
def self.configure
yield configuration
end
# @private
+ def self.integrations
+ configuration.integrations
+ end
+
+ # @private
def self.configuration
@_configuration ||= Configuration.new
end
# @private
class Configuration
+ attr_reader :integrations
+
+ def initialize
+ @integrations = nil
+ end
+
def integrate(&block)
- Integrations::Configuration.apply(self, &block)
+ @integrations = Integrations::Configuration.apply(&block)
end
end
end
end