Fetching contributors…
Cannot retrieve contributors at this time
46 lines (36 sloc) 914 Bytes
use("ispec")
describe("Symbol",
it("should have the correct kind",
Symbol should have kind("Symbol")
)
it("should not be possible to mimic",
fn(:foo mimic) should signal(Condition Error CantMimicOddball)
)
it("should evaluate to itself",
:foo_bar should == :foo_bar
)
it("should evaluate to the same instance every time referenced",
:foo x = 13
:foo x should == 13
)
describe("asText",
it("should validate type of receiver",
Symbol should checkReceiverTypeOn(:asText)
)
)
describe("inspect",
it("should validate type of receiver",
Symbol should checkReceiverTypeOn(:inspect)
)
)
describe("notice",
it("should validate type of receiver",
Symbol should checkReceiverTypeOn(:notice)
)
)
describe("<=>",
it("should validate type of receiver",
Symbol should checkReceiverTypeOn(:"<=>", :arovane)
)
)
)