Sha256: fa2f39e33641033ec2cf80e6834736dcc82eae8d50f41b330a0045cd0ff3ef07

Contents?: true

Size: 341 Bytes

Versions: 24

Compression:

Stored size: 341 Bytes

Contents

require 'pork/expect'
require 'pork/error'

module Pork
  module Context
    private
    def expect *args, &block
      Expect.new(pork_stat, *args, &block)
    end

    def skip
      raise Skip.new
    end

    def flunk reason='Flunked'
      raise Error.new(reason)
    end

    def ok
      pork_stat.incr_assertions
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
pork-2.1.0 lib/pork/context.rb
pork-2.0.0 lib/pork/context.rb
pork-1.5.0 lib/pork/context.rb
pork-1.4.4 lib/pork/context.rb
pork-1.4.3 lib/pork/context.rb
pork-1.4.2 lib/pork/context.rb
pork-1.4.1 lib/pork/context.rb
pork-1.4.0 lib/pork/context.rb
pork-1.3.1 lib/pork/context.rb
pork-1.3.0 lib/pork/context.rb
pork-1.2.4 lib/pork/context.rb
pork-1.2.3 lib/pork/context.rb
pork-1.2.2 lib/pork/context.rb
pork-1.2.1 lib/pork/context.rb
pork-1.2.0 lib/pork/context.rb
pork-1.1.3 lib/pork/context.rb
pork-1.1.2 lib/pork/context.rb
pork-1.1.1 lib/pork/context.rb
pork-1.1.0 lib/pork/context.rb
pork-1.0.4 lib/pork/context.rb