Skip to content

Instantly share code, notes, and snippets.

@innovationfactory
Created May 29, 2009 12:09
Show Gist options
  • Save innovationfactory/119919 to your computer and use it in GitHub Desktop.
Save innovationfactory/119919 to your computer and use it in GitHub Desktop.
iik> use("ispec")
+> true
iik> 1 should == 1
+> true
iik> Can = Origin do(initialize = method(beans:, @beans = beans))
+> Origin:
=== = ===:method(...)
eval = eval:method(...)
initialize = initialize:method(...)
kind = "Origin"
mimic = theMacro:macro(...)
print = print:method(...)
println = println:method(...)
iik> b = Can mimic(beans: "baked")
+> Origin_0x56D1396F:
beans = "baked"
iik> b beans
+> "baked"
iik> 1 should == 1
*** - couldn't find cell 'realValue' on 'ISpec ShouldContext' (Condition Error NoSuchCell)
self cell(:realValue) [/Users/sam/Development/ioke/lib/ioke/ispec/expectations.ik:26:27]
Ground nil ==(realValue) [/Users/sam/Development/ioke/lib/ioke/ispec/expectations.ik:100:25:in `nil']
nil [<init>:0:0:in `initialize']
newMimic initialize(*(rest), *(krest)) [builtin/G10_origin.ik:5:13]
The following restarts are available:
0: storeValue (Store value for: realValue)
1: useValue (Use value for: realValue)
2: abort (restart: abort)
3: quit (restart: quit)
dbg:1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment