Class: JobSpec::Role::Expectations
- Inherits:
-
Object
- Object
- JobSpec::Role::Expectations
- Defined in:
- lib/job_spec/role.rb
Class Method Summary collapse
Class Method Details
.expected(expectation, description = nil) ⇒ Object
54 55 56 57 |
# File 'lib/job_spec/role.rb', line 54 def self.expected(expectation, description = nil) @role ||= Role.new(self.class.name) @role.expected(expectation, description) end |
.to_a ⇒ Object
59 60 61 |
# File 'lib/job_spec/role.rb', line 59 def self.to_a @role.expectations end |