Class: JobSpec::Role::Expectations

Inherits:
Object
  • Object
show all
Defined in:
lib/job_spec/role.rb

Class Method Summary collapse

Class Method Details

.expected(expectation, description = nil) ⇒ Object



43
44
45
46
# File 'lib/job_spec/role.rb', line 43

def self.expected(expectation, description = nil)
  @role ||= Role.new(self.class.name)
  @role.expected(expectation, description)
end

.to_aObject



48
49
50
# File 'lib/job_spec/role.rb', line 48

def self.to_a
  @role.expectations
end