Sha256: b4cd78a0dbd7b624ce933e8f68b7ba324798ffa9240a29437a775ba5ca2de41e

Contents?: true

Size: 307 Bytes

Versions: 9

Compression:

Stored size: 307 Bytes

Contents

require "spec_helper"

describe "Core Extensions" do

  describe Array do

    it "should have a #to_xy method" do
      [1,2,3].to_xy.should eql([1.0, 2.0])
    end

  end

  describe Hash do

    it "should have a #to_xy method" do
      { x: 1.1, y: 2.1 }.to_xy.should eql([1.1, 2.1])
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mongoid_geospatial-2.8.1 spec/mongoid_geospatial/extensions/core_ext_spec.rb
mongoid_geospatial-2.8.0 spec/mongoid_geospatial/extensions/core_ext_spec.rb
mongoid_geospatial-2.7.2 spec/mongoid_geospatial/extensions/core_ext_spec.rb
mongoid_geospatial-2.7.1 spec/mongoid_geospatial/extensions/core_ext_spec.rb
mongoid_geospatial-2.7.0 spec/mongoid_geospatial/extensions/core_ext_spec.rb
mongoid_geospatial-2.5.1 spec/mongoid_geospatial/extensions/core_ext_spec.rb
mongoid_geospatial-2.5.0 spec/mongoid_geospatial/extensions/core_ext_spec.rb
mongoid_geospatial-2.3.0 spec/mongoid_geospatial/extensions/core_ext_spec.rb
mongoid_geospatial-2.2.0 spec/mongoid_geospatial/extensions/core_ext_spec.rb