Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (25 sloc) 523 Bytes
FancySpec describe: DynamicSlotObject with: {
it: "has the correct slots defined" when: {
dso = DynamicSlotObject new
dso tap: @{
name: "Chris"
age: 25
country: "Germany"
dso object tap: @{
slots is: ['name, 'age, 'country]
class is: Object
# getters
name is: "Chris"
age is: 25
country is: "Germany"
# setters
name: "Jack"
name is: "Jack"
age: 26
age is: 26
country: "USA"
country is: "USA"
Something went wrong with that request. Please try again.