Class: Fixturama::Changes::Const
- 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
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 |
#key ⇒ Object
7 8 9 |
# File 'lib/fixturama/changes/const.rb', line 7 def key name end |