Class: Test::Tap

Inherits:
Object
  • Object
show all
Defined in:
lib/test/more.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTap

Returns a new instance of Tap.



179
180
181
182
183
# File 'lib/test/more.rb', line 179

def initialize
  @plan = 0
  @run = 0
  @failed = 0
end

Instance Attribute Details

#failedObject

Returns the value of attribute failed.



177
178
179
# File 'lib/test/more.rb', line 177

def failed
  @failed
end

#planObject

Returns the value of attribute plan.



175
176
177
# File 'lib/test/more.rb', line 175

def plan
  @plan
end

#runObject

Returns the value of attribute run.



176
177
178
# File 'lib/test/more.rb', line 176

def run
  @run
end

Instance Method Details

#failed_incrObject



189
190
191
# File 'lib/test/more.rb', line 189

def failed_incr
  @failed += 1
end

#run_incrObject



185
186
187
# File 'lib/test/more.rb', line 185

def run_incr
  @run += 1
end