add another test for forwarding properties

This commit is contained in:
Laurent Sansonetti
2012-09-23 20:06:33 +02:00
parent b67c007d93
commit c6bc02600b

View File

@@ -206,12 +206,19 @@ describe "Large unsigned ints (Bignum)" do
end
describe "Properties implemented using forwarders" do
it "can be called" do
it "can be called (1)" do
player = GKLocalPlayer.localPlayer
player.alias.should == nil
player.alias = 'lol'
player.alias.should == 'lol'
end
it "can be called (2)" do
mr = GKMatchRequest.alloc.init
mr.maxPlayers.should >= 0
mr.maxPlayers = 42
mr.maxPlayers.should == 42
end
end
class TestDefineMethod