Sha256: 19f3f4b022eff24eb2c91842fe93d5274e10e34737a566dd7cf9057921d77d3e

Contents?: true

Size: 293 Bytes

Versions: 15

Compression:

Stored size: 293 Bytes

Contents

require 'pork/test'

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

15 entries across 15 versions & 1 rubygems

Version Path
pork-2.1.0 test/test_should.rb
pork-2.0.0 test/test_should.rb
pork-1.5.0 test/test_should.rb
pork-1.4.4 test/test_should.rb
pork-1.4.3 test/test_should.rb
pork-1.4.2 test/test_should.rb
pork-1.4.1 test/test_should.rb
pork-1.4.0 test/test_should.rb
pork-1.3.1 test/test_should.rb
pork-1.3.0 test/test_should.rb
pork-1.2.4 test/test_should.rb
pork-1.2.3 test/test_should.rb
pork-1.2.2 test/test_should.rb
pork-1.2.1 test/test_should.rb
pork-1.2.0 test/test_should.rb