Class: Jbr::Mock::Jobs
Overview
The jobs an app under test asked Jbr.mock to answer with.
Constant Summary
Constants inherited from Jobs
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#each ⇒ Enumerator<Mock::Job>
Every job the app named.
-
#find(_) ⇒ Mock::Job
The one job the app named, whatever ID is asked for.
-
#past ⇒ Enumerator<Mock::Job>
Those it dated before now.
-
#upcoming ⇒ Enumerator<Mock::Job>
Those it dated from now on, and any it left undated.
Methods included from Includable
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Jbr::Resource
Instance Method Details
#each ⇒ Enumerator<Mock::Job>
Returns every job the app named.
8 |
# File 'lib/jbr/mock/jobs.rb', line 8 def each(&) = mocked(Jbr.mock.jobs).each(&) |
#find(_) ⇒ Mock::Job
Returns the one job the app named, whatever ID is asked for.
5 |
# File 'lib/jbr/mock/jobs.rb', line 5 def find(_) = Mock::Job.new node: Jbr.mock.job |