ActiveResourceKit  v1.2 (498.0)
 All Classes Files Functions Variables Typedefs Enumerator Properties Macros Pages
Classes | Functions
ActiveResourceKitTests.h File Reference
#import "ARTestCase.h"
Include dependency graph for ActiveResourceKitTests.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ActiveResourceKitTests
 

Functions

NSURL * ActiveResourceKitTestsBaseURL (void)
 Defines base URL for testing against.
 

Function Documentation

NSURL* ActiveResourceKitTestsBaseURL ( void  )

Defines base URL for testing against.

Tests access this base URL assuming you have launched the active-resource-kit-tests Rails application. The shared schemas launch a Rails Thin server on localhost:3000. All tests access the base URL here. That makes it easy to change once for all tests to redirect their attention to some other host and port using a different protocol.

Why define a function rather than an NSURL constant reference? Objective-C does not allow for defining NSObjects at load time. You have to run some instructions to construct objects; only string constants delineate a special case.

Definition at line 34 of file ActiveResourceKitTests.m.