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:
- Added 'rspec-rails' gem
- Setup rspec:
rails generate rspec:install
- Create a basic model:
rails generate model Place lat:string lng:string
- Migrated db:
rake db:migrate
- Added
reverse_geocoded_by :lat, :lng
to place.rb - Created a simple test in
spec/models/place_spec.rb
- Executed
rake spec