Class: Procrastinator::Test::MockTaskWithData
- Inherits:
-
Object
- Object
- Procrastinator::Test::MockTaskWithData
- Defined in:
- lib/procrastinator/test/mocks.rb
Overview
Testing mock Task class that requires a data packet
Instance Attribute Summary collapse
-
#container ⇒ Object
Returns the value of attribute container.
-
#data ⇒ Object
Returns the value of attribute data.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#scheduler ⇒ Object
Returns the value of attribute scheduler.
Instance Method Summary collapse
-
#run ⇒ Object
Records that the mock task was run.
-
#run? ⇒ Boolean
Whether the task was run.
Instance Attribute Details
#container ⇒ Object
Returns the value of attribute container.
39 40 41 |
# File 'lib/procrastinator/test/mocks.rb', line 39 def container @container end |
#data ⇒ Object
Returns the value of attribute data.
39 40 41 |
# File 'lib/procrastinator/test/mocks.rb', line 39 def data @data end |
#logger ⇒ Object
Returns the value of attribute logger.
39 40 41 |
# File 'lib/procrastinator/test/mocks.rb', line 39 def logger @logger end |
#scheduler ⇒ Object
Returns the value of attribute scheduler.
39 40 41 |
# File 'lib/procrastinator/test/mocks.rb', line 39 def scheduler @scheduler end |
Instance Method Details
#run ⇒ Object
Records that the mock task was run.
42 43 44 |
# File 'lib/procrastinator/test/mocks.rb', line 42 def run @run = true end |
#run? ⇒ Boolean
47 48 49 |
# File 'lib/procrastinator/test/mocks.rb', line 47 def run? @run end |