Files
cappuccino/Tests/CucumberTests/CPViewControllerTest/features/support/Cucumber+Extensions.j
T

19 lines
423 B
Plaintext

@import <Foundation/Foundation.j>
@implementation Cucumber (CuCapp)
- (CPString)valueIsEqual:(CPArray)params
{
var obj = cucumber_objects[params[0]],
value = params[1];
if (!obj)
return '{"result" : "__CUKE_ERROR__"}';
if ([obj respondsToSelector:@selector(stringValue)] && value === [obj stringValue])
return '{"result" : "OK"}';
return '{"result" : "__CUKE_ERROR__"}';
}
@end