module Shoulda::Matchers::Doublespeak
@private
Public Class Methods
debug(&block)
click to toggle source
# File lib/shoulda/matchers/doublespeak.rb, line 22 def debug(&block) if debugging_enabled? puts block.call # rubocop:disable Rails/Output end end
debugging_enabled?()
click to toggle source
# File lib/shoulda/matchers/doublespeak.rb, line 18 def debugging_enabled? ENV['DEBUG_DOUBLESPEAK'] == '1' end
world()
click to toggle source
# File lib/shoulda/matchers/doublespeak.rb, line 14 def world @_world ||= World.new end