Comments (3)
The specs run just fine for me.
$ rspec spec/mongoid/geo/ ....................................... $ ruby -v ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.6.0]
But using rake, I get that same error...
$ rake -v (in /Users/kristianconsult/Development/Languages/Ruby/Apps/Gems/mongoid_geo) /Users/kristianconsult/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/rake.rb:30: warning: already initialized constant RAKEVERSION WARNING: Possible conflict with Rake extension: String#ext already exists WARNING: Possible conflict with Rake extension: String#pathmap already exists /Users/kristianconsult/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/rake.rb:402: warning: already initialized constant EMPTY_TASK_ARGS
from mongoid-geo.
Thanks, I'll use the rspec command for now.
I noticed that two specs are failing:
-
Mongoid::Geo::Near geoNear option :maxDistance should limit on maximum distance
Failure/Error: Address.geoNear(address, :location, :maxDistance => 0.2).size.should == 1
expected: 1
got: 2 (using ==)./spec/mongoid/geo/geo_near_spec.rb:36:in `block (4 levels) in <top (required)>'
-
Mongoid::Geo::Near geoNear option :query should filter using extra query option
Failure/Error: Address.geoNear(address, :location, :query => {:city => 'Munich'}).size.should == 1
expected: 1
got: 2 (using ==)./spec/mongoid/geo/geo_near_spec.rb:50:in `block (4 levels) in <top (required)>'
from mongoid-geo.
Have been fixed
from mongoid-geo.
Related Issues (20)
- to_model doesn't work with latest Mongoid HOT 3
- store geo data and using Spherical Model HOT 4
- if trying to save array, first (lat) is always 0 HOT 3
- nil distance HOT 7
- Invalid Gemspec Error HOT 3
- Invalid gemspec in [mongoid_geo-0.4.2.gemspec]: invalid date format in specification: "2011-05-03 00:00:00.000000000Z" HOT 3
- Maintain Distance Calculations in Mongoid::Criteria HOT 13
- undefined method 'distance=' for Model HOT 3
- Invalid date format in gemspec HOT 16
- `geo_index': undefined method `define_singleton_method' HOT 5
- Removal of $geoNear. Why?
- Removal of $geoNear. Why? HOT 3
- Gemfile issues HOT 1
- geo_near throwing error HOT 13
- Uninitialized constant Mongoid::Geo HOT 2
- Current gem doesn't like REE HOT 2
- Bug in geo_near HOT 11
- Problem with mongoid 2.2.1 and << operator HOT 1
- Gemspec should not reference bson_ext HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongoid-geo.