Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (26 sloc) 1.096 kb
// GBTemplateVariablesProvider-CommonTesting.m
// appledoc
// Created by Tomaz Kragelj on 1.10.10.
// Copyright (C) 2010 Gentle Bytes. All rights reserved.
#import "GBApplicationSettingsProvider.h"
#import "GBHTMLTemplateVariablesProvider.h"
#import "GBTokenizer.h"
@interface GBTemplateVariablesProviderCommonTesting : GHTestCase
@implementation GBTemplateVariablesProviderCommonTesting
- (void)testVariablesForClass_shouldPrepareDefaultVariables {
// setup
GBHTMLTemplateVariablesProvider *provider = [GBHTMLTemplateVariablesProvider providerWithSettingsProvider:[GBTestObjectsRegistry realSettingsProvider]];
GBClassData *class = [GBClassData classDataWithName:@"Class"];
// execute
NSDictionary *vars = [provider variablesForClass:class withStore:[GBTestObjectsRegistry store]];
// verify - just basic tests...
assertThat([vars objectForKey:@"page"], isNot(nil));
assertThat([vars valueForKeyPath:@"page.title"], isNot(nil));
assertThat([vars valueForKeyPath:@"page.specifications"], isNot(nil));
assertThat([vars objectForKey:@"object"], is(class));
Jump to Line
Something went wrong with that request. Please try again.