Module: Moon::Test::Spec

Included in:
Moon::Test
Defined in:
lib/moon/packages/test/spec.rb

Overview

Basic Spec Framework

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#spec_suiteObject

Returns the value of attribute spec_suite


117
118
119
# File 'lib/moon/packages/test/spec.rb', line 117

def spec_suite
  @spec_suite
end

Instance Method Details

#context(*a, &b) ⇒ Object


127
128
129
# File 'lib/moon/packages/test/spec.rb', line 127

def context(*a, &b)
  @spec_suite.context(*a, &b)
end

#describe(*a, &b) ⇒ Object


123
124
125
# File 'lib/moon/packages/test/spec.rb', line 123

def describe(*a, &b)
  @spec_suite.describe(*a, &b)
end

#init_test_suiteObject


119
120
121
# File 'lib/moon/packages/test/spec.rb', line 119

def init_test_suite
  @spec_suite = SpecSuite.new
end

#it(*a, &b) ⇒ Object


131
132
133
# File 'lib/moon/packages/test/spec.rb', line 131

def it(*a, &b)
  @spec_suite.it(*a, &b)
end

#run_specs(*a, &b) ⇒ Object


143
144
145
# File 'lib/moon/packages/test/spec.rb', line 143

def run_specs(*a, &b)
  @spec_suite.run_specs(*a, &b)
end

#spec(*a, &b) ⇒ Object


135
136
137
# File 'lib/moon/packages/test/spec.rb', line 135

def spec(*a, &b)
  @spec_suite.spec(*a, &b)
end

#spec_bm(*a, &b) ⇒ Object


139
140
141
# File 'lib/moon/packages/test/spec.rb', line 139

def spec_bm(*a, &b)
  @spec_suite.spec_bm(*a, &b)
end