Class: Uspec::Define

Inherits:
Object
  • Object
show all
Defined in:
lib/uspec/define.rb

Instance Method Summary collapse

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