Module: PigSpec

Defined in:
lib/pigspec.rb,
lib/pigspec/version.rb,
lib/pigspec/javabridge.rb

Overview

A testing framework for pig

Defined Under Namespace

Classes: JavaBridge, JavaPigTest, Test

Constant Summary collapse

VERSION =
'0.0.3'

Class Method Summary collapse

Class Method Details

.pig(&block) ⇒ Object



91
92
93
94
95
96
97
98
# File 'lib/pigspec.rb', line 91

def pig(&block)
  test = Test.new
  test.setup
  test.evaluate(&block)
  result = test.run
  test.shutdown
  result
end