Class: Fixturama::Changes::Const

Inherits:
Base
  • Object
show all
Defined in:
lib/fixturama/changes/const.rb

Overview

Stub a constant

Instance Attribute Summary

Attributes inherited from Base

#key The key identifier of the change

Instance Method Summary collapse

Methods inherited from Base

#merge

Instance Method Details

#call(example) ⇒ Object



11
12
13
14
# File 'lib/fixturama/changes/const.rb', line 11

def call(example)
  example.send(:stub_const, name, value)
  self
end

#keyObject



7
8
9
# File 'lib/fixturama/changes/const.rb', line 7

def key
  name
end