Skip to content
Snippets Groups Projects
Commit f5cbf275 authored by Ben Woosley's avatar Ben Woosley
Browse files

Rework the mongoid_test_helper such that we don't blow up for lack of Geocoder::Model::Mongoid

parent f8849a96
No related branches found
No related tags found
No related merge requests found
# encoding: utf-8
require 'test_helper'
begin
require 'mongoid'
require 'mongoid_test_helper'
class MongoidTest < Test::Unit::TestCase
def test_geocoded_check
p = Place.new(*venue_params(:msg))
p.location = [40.750354, -73.993371]
......@@ -25,7 +20,3 @@ class MongoidTest < Test::Unit::TestCase
assert_equal p.selector[:location]['$nearSphere'], location.reverse
end
end
rescue LoadError
warn 'Mongoid not installed, not tested.'
end
require 'rubygems'
require 'test/unit'
require 'test_helper'
require 'mongoid'
require 'geocoder/models/mongoid'
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment