Skip to content

An example rails project specifying ruby version 2.1.3 and rails 4.2.0.rc1 showing a bug when attempting to run rspec with a class that uses `reverse_geocoded_by`

Notifications You must be signed in to change notification settings

schenkman/geocoder-rspec-test-ruby2.1.3-rails4.2.0.rc1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

This project contains a very simple setup to reproduce the rspec test error in ruby 1.9.3 and rails 3.2.19.

To see the error, simply pull the project and run: rake db:migrate rake spec

The project was created with the following steps:

  1. Added 'rspec-rails' gem
  2. Setup rspec: rails generate rspec:install
  3. Create a basic model: rails generate model Place lat:string lng:string
  4. Migrated db: rake db:migrate
  5. Added reverse_geocoded_by :lat, :lng to place.rb
  6. Created a simple test in spec/models/place_spec.rb
  7. Executed rake spec

About

An example rails project specifying ruby version 2.1.3 and rails 4.2.0.rc1 showing a bug when attempting to run rspec with a class that uses `reverse_geocoded_by`

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published