ActiveResourceKit
v1.2 (498.0)
|
#import "ARTestCase.h"
Go to the source code of this file.
Classes | |
class | ActiveResourceKitTests |
Functions | |
NSURL * | ActiveResourceKitTestsBaseURL (void) |
Defines base URL for testing against. | |
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.