Skip to content

Commit

Permalink
adds block scope spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremytregunna committed Oct 31, 2011
1 parent 9ace78e commit 07a4e05
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions core/block/scope-spec.io
@@ -0,0 +1,15 @@
describe("Block Scope",
setup(
blk := block(1) setScope(Object)
)

it("allows scope to be modified",
a := blk clone setScope(nil)
a scope verify(!= Object)
)

it("self points at the scope",
blk := block(self) setScope(1)
blk call verify(== 1)
)
)

0 comments on commit 07a4e05

Please sign in to comment.