class Pione::TestHelper::Transformer::TestCases

test case list

Public Instance Methods

fail(string, exception_type) click to toggle source
# File lib/pione/test-helper/transformer-helper.rb, line 43
def fail(string, exception_type)
  push(FailCase.new(string, exception_type))
end
succeed(string) click to toggle source
# File lib/pione/test-helper/transformer-helper.rb, line 39
def succeed(string)
  push(SucceedCase.new(string))
end
test(obj, res=nil, &b) click to toggle source
# File lib/pione/test-helper/transformer-helper.rb, line 31
def test(obj, res=nil, &b)
  if res
    push(Naming.Eq(TestCase.new(obj, res)))
  else
    push(Naming.Block(TestCase.new(obj, b)))
  end
end