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-1.0.0 test/scopes.rb
cutest-1.0.0.beta1 test/scopes.rb
cutest-1.0.0.beta test/scopes.rb
cutest-0.1.5 test/scopes.rb
cutest-0.1.4 test/scopes.rb
cutest-0.1.3 test/scopes.rb
cutest-0.1.2 test/scopes.rb
cutest-0.1.1 test/scopes.rb
cutest-0.1.0 test/scopes.rb