Sha256: f2c8fe5b7d0ae50464bfa6970f210be69a09f96c9ebe957f64a4fd015078ef99

Contents?: true

Size: 314 Bytes

Versions: 49

Compression:

Stored size: 314 Bytes

Contents

prepare do
  $foo = []
end

prepare do
  $foo << true
end

test "all the prepare blocks are called" do
  assert $foo == [true]
end

prepare do
  $foo << false
end

test "and are cumulative" do
  assert $foo == [true, false]
end

scope do
  test "and run inside scopes" do
    assert $foo = [true, false]
  end
end

Version data entries

49 entries across 49 versions & 3 rubygems

Version Path
polizia-1.0.0 .gs/gems/cutest-1.2.3/test/prepare.rb
cutest-1.2.3 test/prepare.rb
cutest-1.2.2 test/prepare.rb
cutest-cj-1.8.1 test/prepare.rb
cutest-cj-1.8.0 test/prepare.rb
cutest-cj-1.7.1 test/prepare.rb
cutest-cj-1.7.0 test/prepare.rb
cutest-cj-1.6.4 test/prepare.rb
cutest-cj-1.6.3 test/prepare.rb
cutest-cj-1.6.2 test/prepare.rb
cutest-cj-1.6.1 test/prepare.rb
cutest-cj-1.6.0 test/prepare.rb
cutest-cj-1.5.1 test/prepare.rb
cutest-cj-1.5.0 test/prepare.rb
cutest-cj-1.4.0 test/prepare.rb
cutest-cj-1.3.9 test/prepare.rb
cutest-cj-1.3.8 test/prepare.rb
cutest-cj-1.3.7 test/prepare.rb
cutest-cj-1.3.6 test/prepare.rb
cutest-cj-1.3.5 test/prepare.rb