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



604
605
606
# File 'lib/roby/test/assertions.rb', line 604

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.



605
606
607
# File 'lib/roby/test/assertions.rb', line 605

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.



609
610
611
# File 'lib/roby/test/assertions.rb', line 609

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.



613
614
615
# File 'lib/roby/test/assertions.rb', line 613

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