Class: Roby::Test::Assertions::FlexmockExceptionTasks Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/roby/test/assertions.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Helper matcher used to provide a better error message in the various exception assertions

Deprecated assertions replaced by expect_execution collapse

Deprecated assertions replaced by expect_execution collapse

Instance Attribute Details

#tasksObject

Returns the value of attribute tasks

Returns:

  • (Object)

    the current value of tasks



437
438
439
# File 'lib/roby/test/assertions.rb', line 437

def tasks
  @tasks
end

Instance Method Details

#===(tasks) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



438
439
440
# File 'lib/roby/test/assertions.rb', line 438

def ===(tasks)
    self.tasks.to_set == tasks
end

#inspectObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



441
# File 'lib/roby/test/assertions.rb', line 441

def inspect; to_s end

#to_sObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



442
# File 'lib/roby/test/assertions.rb', line 442

def to_s; "involved_tasks(#{tasks.to_a.map(&:to_s).join(", ")})" end