From a859c89cd579b6201e9af1f4b670017c2d46488d Mon Sep 17 00:00:00 2001
From: Alex Reisner <alex@alexreisner.com>
Date: Thu, 23 Jun 2011 23:14:29 -0400
Subject: [PATCH] Code formatting: replace tabs with spaces.

---
 test/mongoid_test.rb        | 18 +++++++-----------
 test/mongoid_test_helper.rb | 10 +++++-----
 2 files changed, 12 insertions(+), 16 deletions(-)

diff --git a/test/mongoid_test.rb b/test/mongoid_test.rb
index 4b2bed0c..c4fb8ae0 100644
--- a/test/mongoid_test.rb
+++ b/test/mongoid_test.rb
@@ -14,26 +14,22 @@ class MongoidTest < Test::Unit::TestCase
   def test_geocoded_check
     p = Place.new(*venue_params(:msg))
     p.location = [40.750354, -73.993371]
-
-		assert p.geocoded?
-	end
+    assert p.geocoded?
+  end
 
   def test_distance_to_returns_float
     p = Place.new(*venue_params(:msg))
     p.location = [40.750354, -73.993371]
-
     assert p.distance_to([30, -94]).is_a?(Float)
   end
 
-	def test_custom_coordinate_field_near_scope
-		location = [40.750354, -73.993371]
+  def test_custom_coordinate_field_near_scope
+    location = [40.750354, -73.993371]
     p = Place.near(location)
- 
-		assert p.selector[:location]
-		assert_equal p.selector[:location]['$nearSphere'], location.reverse
- 	end
+    assert_equal p.selector[:location]['$nearSphere'], location.reverse
+  end
 end
 
 rescue LoadError => crash
-	warn 'Mongoid not installed, not tested.'
+  warn 'Mongoid not installed, not tested.'
 end
diff --git a/test/mongoid_test_helper.rb b/test/mongoid_test_helper.rb
index 159f8a22..5486a124 100644
--- a/test/mongoid_test_helper.rb
+++ b/test/mongoid_test_helper.rb
@@ -12,13 +12,13 @@ end
 # Geocoded model.
 #
 class Place
-	include Mongoid::Document
-	include Geocoder::Model::Mongoid
+  include Mongoid::Document
+  include Geocoder::Model::Mongoid
 
   geocoded_by :address, :coordinates => :location
-	field :name
-	field :address
-	field :location, :type => Array
+  field :name
+  field :address
+  field :location, :type => Array
 
   def initialize(name, address)
     super()
-- 
GitLab