Class Uttk::Strategies::Sleep
In: lib/uttk/strategies/Sleep.rb
Parent: Strategy

A test strategy class that only sleep for a moment before to pass.

Methods

delay=   run_impl  

Included Modules

Concrete

Public Instance methods

[Source]

# File lib/uttk/strategies/Sleep.rb, line 15
      def delay=(other)
        other = other.to_f
        if other >= 0
          @delay = other
        else
          raise(ArgumentError, "`#{other}' - sleep delay must be >= 0")
        end
      end

Protected Instance methods

[Source]

# File lib/uttk/strategies/Sleep.rb, line 25
      def run_impl
        sleep(@delay)
        pass
      end

[Validate]