Sha256: 2cd4b499fb492ab8458ce16ab7fc1dc38be3bb13f43f1c9298282f3dad29f9b6

Contents?: true

Size: 325 Bytes

Versions: 49

Compression:

Stored size: 325 Bytes

Contents

@bar = true

scope do
  @foo = true

  test "something" do
    assert defined?(@foo)
    assert !defined?(@bar)
  end
end

scope do
  test "something" do
    assert !defined?(@foo)
    assert !defined?(@bar)
  end
end

scope do
  @baz = true

  scope do
    test "something" do
      assert !defined?(@baz)
    end
  end
end

Version data entries

49 entries across 49 versions & 3 rubygems

Version Path
cutest-cj-1.3.4 test/scopes.rb
cutest-cj-1.3.3 test/scopes.rb
cutest-cj-1.3.2 test/scopes.rb
cutest-cj-1.3.1 test/scopes.rb
cutest-cj-1.3.0 test/scopes.rb
cutest-cj-1.2.4 test/scopes.rb
cutest-cj-1.2.3 test/scopes.rb
cutest-cj-1.2.2 test/scopes.rb
cutest-1.2.1 test/scopes.rb
cutest-1.2.0 test/scopes.rb
cutest-1.2.0.rc3 test/scopes.rb
cutest-1.2.0.rc2 test/scopes.rb
cutest-1.2.0.rc1 test/scopes.rb
cutest-1.1.3 test/scopes.rb
cutest-1.1.2 test/scopes.rb
cutest-1.1.1 test/scopes.rb
cutest-1.1.0 test/scopes.rb
cutest-1.1.0.rc2 test/scopes.rb
cutest-1.1.0.rc1 test/scopes.rb
cutest-1.0.1 test/scopes.rb