class Fixturama::Changes::Base

@private @abstract Base class for changes downloaded from a fixture

Public Instance Methods

call(_example) click to toggle source

@abstract Call the corresponding change (either a stub or a seed) @param [RSpec::Core::Example] _example The RSpec example @return [self]

   # File lib/fixturama/changes/base.rb
24 def call(_example)
25   self
26 end
merge(other) click to toggle source

Merge the other change into the current one @param [Fixturama::Changes::Base] other @return [Fixturama::Changes::Base]

   # File lib/fixturama/changes/base.rb
15 def merge(other)
16   # By default just take the other change if applicable
17   other.instance_of?(self.class) && other.key == key ? other : self
18 end