module SPV::Mixins::Page::ClassMethods
Attributes
vcr_adjuster[R]
vcr_child_adjusters[R]
Public Instance Methods
adjust_parent_vcr_options(&block)
click to toggle source
# File lib/site_prism_vcr/mixins/page.rb, line 27 def adjust_parent_vcr_options(&block) raise ArgumentError.new( 'There is not any Vcr options defined for the parent class' ) unless self.vcr_adjuster self.vcr_child_adjusters << block end
inherited(subclass)
click to toggle source
# File lib/site_prism_vcr/mixins/page.rb, line 15 def inherited(subclass) # This code is required to allow subpages to inherit # a defined adjuster block. Otherwise, that block should be # duplicated in a subpage as well. subclass.instance_variable_set(:@vcr_adjuster, @vcr_adjuster) subclass.instance_variable_set(:@vcr_child_adjusters, @vcr_child_adjusters.dup) end
vcr_options_for_load(&block)
click to toggle source
# File lib/site_prism_vcr/mixins/page.rb, line 23 def vcr_options_for_load(&block) @vcr_adjuster = block end