Sha256: b63d83b6641f4036fdded62533813fa57e41cc9dd4e8d74fcfd0953082910814

Contents?: true

Size: 407 Bytes

Versions: 4

Compression:

Stored size: 407 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.should eq 54.7000236388889
    picture.longitude.should eq 11.3945503055556
    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.4 spec/models/family_gallery/picture_spec.rb
family_gallery-0.0.3 spec/models/family_gallery/picture_spec.rb
family_gallery-0.0.2 spec/models/family_gallery/picture_spec.rb
family_gallery-0.0.1 spec/models/family_gallery/picture_spec.rb