spec/spec_helper.rb in geo_calc-0.7.1 vs spec/spec_helper.rb in geo_calc-0.7.3
- old
+ new
@@ -1,12 +1,20 @@
-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
-$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'geo_calc'
-# Requires supporting files with custom matchers and macros, etc,
-# in ./support/ and its subdirectories.
-Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
+class GeoPoint
+ attr_accessor :lat, :lon
+
+ def initialize lat, lon
+ @lat = lat
+ @lon = lon
+ end
+
+ def lng
+ lon
+ end
+end
+
RSpec.configure do |config|
end