mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-04 22:58:19 +08:00
add another test for forwarding properties
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user