Class: Restspec::Requirements::DSL

Inherits:
Object
  • Object
show all
Defined in:
lib/restspec/requirements/dsl.rb

Instance Method Summary collapse

Instance Method Details

#requirement(name, &definition) ⇒ Object



4
5
6
7
# File 'lib/restspec/requirements/dsl.rb', line 4

def requirement(name, &definition)
  requirement = Requirement.get_or_create(name)
  requirement.instance_eval(&definition)
end