Sha256: 5d95ba3976241206a44841fccfb2045291d18f63cbf1b2bfe5721d79a72875b1

Contents?: true

Size: 315 Bytes

Versions: 8

Compression:

Stored size: 315 Bytes

Contents

require 'pork/auto'
require 'pork/should'

describe Pork::Should do
  def check_group_list level=9
    Thread.new{ check_group_list(level - 1) }.join if level > 0
    ok
  end

  would '#should' do
    asserts = pork_stat.assertions
    check_group_list
    (pork_stat.assertions - asserts).should.eq 10
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pork-1.1.3 test/test_should.rb
pork-1.1.2 test/test_should.rb
pork-1.1.1 test/test_should.rb
pork-1.1.0 test/test_should.rb
pork-1.0.4 test/test_should.rb
pork-1.0.3 test/test_should.rb
pork-1.0.2 test/test_should.rb
pork-1.0.1 test/test_should.rb