Method: MiniSpec::InstanceAPI#skip

Defined in:
lib/minispec/api/instance.rb

#skipObject Also known as: skip!

stop evaluation of the current test right away

Examples:

test :some_test do
  is(1) < 2
  skip
  is(1) > 2 # this wont be evaluated so the test will pass
end


60
61
62
63
# File 'lib/minispec/api/instance.rb', line 60

def skip
  @__ms__skipped = caller.first
  throw :__ms__stop_evaluation
end