Sha256: 72ed939bc97df87d7b59e81a26050f5f128f342e72ab8ca29322b8d40c8ed132

Contents?: true

Size: 455 Bytes

Versions: 2

Compression:

Stored size: 455 Bytes

Contents

require 'test_helper'

class PlaceTest < ActiveSupport::TestCase
  def test_access_grid_method
    assert_equal "168x",  Place.style_grid_3
    assert_equal "54x",   Place.style_publisher
  end

  def test_image_cover
    @place = Place.create(:name => "Busk")
    @image = @place.images.create(:photo => exemple_file, :priority => 0)
    @place.images.create(:photo => exemple_file, :priority => 1)

    assert_equal @place.image_cover, @image
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
attachment_magick-0.3.2 test/attachment_magick/units/place_test.rb
attachment_magick-0.3.1 test/attachment_magick/units/place_test.rb