Skip to content

Instantly share code, notes, and snippets.

@muncman
Created January 22, 2010 21:45
Show Gist options
  • Save muncman/284159 to your computer and use it in GitHub Desktop.
Save muncman/284159 to your computer and use it in GitHub Desktop.
Just a sample from my first UISpec experiment. Have to look more into before & beforeAll, retain count, etc.
-(void)itShouldUpdateTheOutputFromTheInput {
UIQuery *app = [UIQuery withApplication];
UILabel *outputLabel = [self.app.label text:@"Update Me"];
[app.textField setText:@"testing 1-2-3"];
[app.button touch];
[outputLabel.should.have text:@"testing 1-2-3"];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment