Class: IOCheck::Test::Expected
- Inherits:
-
Object
- Object
- IOCheck::Test::Expected
- Defined in:
- lib/iocheck/test.rb
Overview
end of class Command
Instance Method Summary collapse
- #bytes ⇒ Object
-
#initialize(test) ⇒ Expected
constructor
A new instance of Expected.
- #repeat ⇒ Object
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
#bytes ⇒ Object
190 191 192 193 |
# File 'lib/iocheck/test.rb', line 190 def bytes content = File.read( ::IOCheck.readfile(@test.name) ) ::IOCheck.strip( content ) end |
#repeat ⇒ Object
187 188 189 |
# File 'lib/iocheck/test.rb', line 187 def repeat @test.repeat end |