Git Product home page Git Product logo

geocoder_test's Introduction

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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.