Sha256: e3bda52f03379e00603a97adf04d0993293f5d1b1a7756eac7a8bee0435a9b17

Contents?: true

Size: 640 Bytes

Versions: 32

Compression:

Stored size: 640 Bytes

Contents

require File.join(File.dirname(__FILE__), '../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

32 entries across 32 versions & 1 rubygems

Version Path
fb_graph-1.7.0 spec/fb_graph/location_spec.rb
fb_graph-1.7.0.alpha2 spec/fb_graph/location_spec.rb
fb_graph-1.6.9 spec/fb_graph/location_spec.rb
fb_graph-1.7.0.alpha spec/fb_graph/location_spec.rb
fb_graph-1.6.8 spec/fb_graph/location_spec.rb
fb_graph-1.6.7 spec/fb_graph/location_spec.rb
fb_graph-1.6.5 spec/fb_graph/location_spec.rb
fb_graph-1.6.4 spec/fb_graph/location_spec.rb
fb_graph-1.6.3 spec/fb_graph/location_spec.rb
fb_graph-1.6.2 spec/fb_graph/location_spec.rb
fb_graph-1.6.1 spec/fb_graph/location_spec.rb
fb_graph-1.6.0 spec/fb_graph/location_spec.rb
fb_graph-1.5.5 spec/fb_graph/location_spec.rb
fb_graph-1.5.4 spec/fb_graph/location_spec.rb
fb_graph-1.5.3 spec/fb_graph/location_spec.rb
fb_graph-1.5.2 spec/fb_graph/location_spec.rb
fb_graph-1.5.1 spec/fb_graph/location_spec.rb
fb_graph-1.5.0 spec/fb_graph/location_spec.rb
fb_graph-1.4.1 spec/fb_graph/location_spec.rb
fb_graph-1.4.0 spec/fb_graph/location_spec.rb