Sha256: 55b60c20eaf0fc8da9e61c5adaa00cc4296fe148d1e468668b6f8049520d6b74

Contents?: true

Size: 419 Bytes

Versions: 4

Compression:

Stored size: 419 Bytes

Contents

require "spec_helper"

describe FamilyGallery::Picture do
  let(:picture) { create :picture }

  it "#parse_exif" do
    picture.should have_attached_file :image
    picture.taken_at.should eq Time.parse("2015-02-25 10:20:47 +0000")
    picture.latitude.to_f.round(5).should eq 54.70002
    picture.longitude.to_f.round(5).should eq 11.39455
    picture.width.should eq 4128
    picture.height.should eq 2322
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
family_gallery-0.0.8 spec/models/family_gallery/picture_spec.rb
family_gallery-0.0.7 spec/models/family_gallery/picture_spec.rb
family_gallery-0.0.6 spec/models/family_gallery/picture_spec.rb
family_gallery-0.0.5 spec/models/family_gallery/picture_spec.rb