Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Utility for testing the Ruby geocoder gem with a real database.
branch: master

This branch is 1 commit behind alexreisner:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
base
rails30
.gitignore
README.rdoc

README.rdoc

The Geocoder Test Apps

This repository consists of some bare Rails apps used for testing the geocoder gem (github.com/alexreisner/geocoder). The tests included with the gem attempt to simulate ActiveRecord and do a very poor job. These apps can be used to better test geocoder with multiple Rails versions and database types.

The /base directory contains the actual meat: the geocoded model, the database migration, the unit tests, and the fixtures. Each of the apps contains symbolic links to these files in the base directory. The base directory also contains some sample database.yml files which you can link to from each app. Note that because the same migration file is used for the different apps you can re-use the same test databases (no need to create different databases for different Rails versions).

You must provide the geocoder gem to each app. It is not included because it is assumed you are using this app to test changes to it. I suggest adding a symbolic link in vendor/plugins (in each app) to your geocoder source directory.

To run the tests, go into an app directory (eg: rails305), create a valid config/database.yml file, create and migrate your database (development and test environments) and run the unit tests (eg: rake test:units).

Something went wrong with that request. Please try again.