Class: IOCheck::Test::Expected

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

Overview

end of class Command

Instance Method Summary collapse

Constructor Details

#initialize(test) ⇒ Expected

Returns a new instance of Expected.



184
185
186
# File 'lib/iocheck/test.rb', line 184

def initialize(test)
  @test = test
end

Instance Method Details

#bytesObject



190
191
192
193
# File 'lib/iocheck/test.rb', line 190

def bytes
  content = File.read( ::IOCheck.readfile(@test.name) )
  ::IOCheck.strip( content )
end

#repeatObject



187
188
189
# File 'lib/iocheck/test.rb', line 187

def repeat
  @test.repeat
end