ActiveResourceKit  v1.2 (498.0)
 All Classes Files Functions Variables Typedefs Enumerator Properties Macros Pages
Classes | Functions
ActiveResourceKitTests.m File Reference
#import "ActiveResourceKitTests.h"
#import <ActiveResourceKit/ActiveResourceKit.h>
#import "Person.h"
#import "Private.h"
Include dependency graph for ActiveResourceKitTests.m:

Go to the source code of this file.

Classes

class  MyObject
 
class  Post
 
class  PostComment
 

Functions

NSURL * ActiveResourceKitTestsBaseURL ()
 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.