module RSpec::Fire

Constants

DEPRECATED
Error
UndefinedConstantError

Public Class Methods

configuration() click to toggle source
# File lib/rspec/fire/configuration.rb, line 12
def self.configuration
  @configuration ||= Configuration.new
end
configure() { |configuration| ... } click to toggle source
# File lib/rspec/fire/configuration.rb, line 16
def self.configure
  yield configuration
end
find_original_value_for(constant_name) { |original_value| ... } click to toggle source
# File lib/rspec/fire/legacy.rb, line 310
def self.find_original_value_for(constant_name)
  const = ::RSpec::Mocks::Constant.original(constant_name)
  yield const.original_value if const.stubbed?
end

Public Instance Methods

class_double(*args) click to toggle source
# File lib/rspec/fire/legacy.rb, line 319
def class_double(*args)
  FireClassDouble.new(*args)
end
fire_class_double(*args) click to toggle source
# File lib/rspec/fire/legacy.rb, line 328
def fire_class_double(*args)
  DEPRECATED["fire_class_double is deprecated, use class_double instead."]
  class_double(*args)
end
fire_double(*args) click to toggle source
# File lib/rspec/fire/legacy.rb, line 323
def fire_double(*args)
  DEPRECATED["fire_double is deprecated, use instance_double instead."]
  instance_double(*args)
end
fire_replaced_class_double(*args) click to toggle source
# File lib/rspec/fire/legacy.rb, line 333
def fire_replaced_class_double(*args)
  DEPRECATED["fire_replaced_class_double is deprecated, use class_double with as_stubbed_const instead."]
  class_double(*args).as_stubbed_const
end
instance_double(*args) click to toggle source
# File lib/rspec/fire/legacy.rb, line 315
def instance_double(*args)
  FireObjectDouble.new(*args)
end