A Mongoid Extention that simplifies and adds support for MongoDB Geo Spacial Calculations.
MIT License
138
stars
63
forks
source link
mongoid_spacial breaks with cucumber: DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically #33
I have performed all the hooks as required by cucumber. When I run the app with rails s, I see no problem.
When I run cucumber, I see the following error:
Using the default profile...
DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Mongoid::Spacial::Document instead. (called from include at .../MyApp/app/models/game.rb:3)
uninitialized constant Mongoid::Spacial::Document::ClassMethods::Mongo (NameError)
.../.rvm/gems/ruby-1.9.3-p392/gems/mongoid_spacial-0.2.16/lib/mongoid_spacial/spacial/document.rb:19:in spacial_index' .../MyApp/app/models/game.rb:16:inclass:Game'
.../MyApp/app/models/game.rb:1:in <top (required)>' .../.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:230:inblock in constantize'
I have the following Model: class Game include Mongoid::Document include Mongoid::Spacial::Document
field :date, type: Date field :description
field :address field :location, type: Array, spacial: true
has_one :team1, class_name: "Team", :validate => true has_one :team2, class_name: "Team", :validate => true
spacial_index :location end
I have performed all the hooks as required by cucumber. When I run the app with rails s, I see no problem. When I run cucumber, I see the following error:
Using the default profile... DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Mongoid::Spacial::Document instead. (called from include at .../MyApp/app/models/game.rb:3) uninitialized constant Mongoid::Spacial::Document::ClassMethods::Mongo (NameError) .../.rvm/gems/ruby-1.9.3-p392/gems/mongoid_spacial-0.2.16/lib/mongoid_spacial/spacial/document.rb:19:in
spacial_index' .../MyApp/app/models/game.rb:16:in
class:Game' .../MyApp/app/models/game.rb:1:in<top (required)>' .../.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:230:in
block in constantize'Any insights please?