Class: TuneSpec::Instances::Steps

Inherits:
Tuner
  • Object
show all
Defined in:
lib/tune_spec/instances/steps.rb

Overview

Defines the steps behavior and rules

Class Method Summary collapse

Methods inherited from Tuner

call_object, format_opts, instance_method_name, object_type

Class Method Details

.rules_passed?(instance, opts = {}) ⇒ Boolean

Steps specific rules



11
12
13
14
15
# File 'lib/tune_spec/instances/steps.rb', line 11

def rules_passed?(instance, opts = {})
  return false if opts.nil?

  same_page?(instance, opts[page_arg]) unless opts.empty?
end