Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (24 sloc) 0.623 kb
//
// DescribeFlat10C.m
// Flat 10C
//
// Created by Nathan B on 28/02/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "UISpec.h"
#import "UIQuery.h"
@interface DescribeFlat10C: NSObject <UISpec> {
}
@end
@implementation DescribeFlat10C
-(void)itShouldBeAbleToTurnOnHallLight {
UIQuery *app = [UIQuery withApplication];
[expectThat([app.find.label text:@"Hall Light"]) should].exist;
UISwitch *light = [app.Switch index:1];
[expectThat(light.on) should:be(NO)];
light.touch;
[expectThat(light.on) should:be(YES)];
light.touch;
[expectThat(light.on) should:be(NO)];
}
@end
Jump to Line
Something went wrong with that request. Please try again.