Sha256: c01ad107221403348a3967730caad83140fbe69f71e00504a1d5fb6407e55b0f

Contents?: true

Size: 602 Bytes

Versions: 109

Compression:

Stored size: 602 Bytes

Contents

require 'spec_helper'

describe FbGraph::Location, '.new' do

  it 'should setup all supported attributes' do
    attributes = {
      :latitude => 30.2669,
      :longitude => -97.7428
    }
    location = FbGraph::Location.new(attributes)
    location.latitude.should == 30.2669
    location.longitude.should == -97.7428
  end

end

describe FbGraph::Location, '.to_hash' do

  it 'should setup all supported attributes' do
    attributes = {
      :latitude => 30.2669,
      :longitude => -97.7428
    }
    location = FbGraph::Location.new(attributes)
    location.to_hash == attributes
  end

end

Version data entries

109 entries across 109 versions & 1 rubygems

Version Path
fb_graph-2.7.17 spec/fb_graph/location_spec.rb
fb_graph-2.7.16 spec/fb_graph/location_spec.rb
fb_graph-2.7.15 spec/fb_graph/location_spec.rb
fb_graph-2.7.14 spec/fb_graph/location_spec.rb
fb_graph-2.7.13 spec/fb_graph/location_spec.rb
fb_graph-2.7.12 spec/fb_graph/location_spec.rb
fb_graph-2.7.11 spec/fb_graph/location_spec.rb
fb_graph-2.7.10 spec/fb_graph/location_spec.rb
fb_graph-2.7.9 spec/fb_graph/location_spec.rb
fb_graph-2.7.8 spec/fb_graph/location_spec.rb
fb_graph-2.7.7 spec/fb_graph/location_spec.rb
fb_graph-2.7.6 spec/fb_graph/location_spec.rb
fb_graph-2.7.5 spec/fb_graph/location_spec.rb
fb_graph-2.7.4 spec/fb_graph/location_spec.rb
fb_graph-2.7.3 spec/fb_graph/location_spec.rb
fb_graph-2.7.2 spec/fb_graph/location_spec.rb
fb_graph-2.7.1 spec/fb_graph/location_spec.rb
fb_graph-2.7.0 spec/fb_graph/location_spec.rb
fb_graph-2.6.7 spec/fb_graph/location_spec.rb
fb_graph-2.6.6 spec/fb_graph/location_spec.rb