Class: Uspec::Define
- Inherits:
-
Object
- Object
- Uspec::Define
- Defined in:
- lib/uspec/define.rb
Instance Method Summary collapse
-
#initialize(harness) ⇒ Define
constructor
A new instance of Define.
- #spec(description, &block) ⇒ Object
Constructor Details
#initialize(harness) ⇒ Define
Returns a new instance of Define.
4 5 6 |
# File 'lib/uspec/define.rb', line 4 def initialize harness @__uspec_harness = harness end |
Instance Method Details
#spec(description, &block) ⇒ Object
8 9 10 |
# File 'lib/uspec/define.rb', line 8 def spec description, &block @__uspec_harness.spec_eval description, &block end |