Sha256: 0a7eaf7608d9394b7e9c63da65c43c6a7d2d5310ebfc9046727d0b1820cb75fa

Contents?: true

Size: 671 Bytes

Versions: 4

Compression:

Stored size: 671 Bytes

Contents

require 'test_helper'

class ArtistTest < ActiveSupport::TestCase
  def test_access_grid_method
    assert_equal "36x36",     Artist.style_thumb
    assert_equal "54x",       Artist.style_grid_1
    assert_equal "150x",      Artist.style_grid_10
    assert_equal "200x300",   Artist.style_grid_15
    assert_equal "909x230#",  Artist.style_grid_16
    assert_equal "x700>",     Artist.style_portrait
  end

  def test_image_cover
    @artist = Artist.create(:name => "Busk")
    @image = @artist.images.create(:photo => example_file, :priority => 0)
    @artist.images.create(:photo => example_file, :priority => 1)

    assert_equal @artist.image_cover, @image
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
attachment_magick-0.3.6 test/attachment_magick/units/artist_test.rb
attachment_magick-0.3.5 test/attachment_magick/units/artist_test.rb
attachment_magick-0.3.4 test/attachment_magick/units/artist_test.rb
attachment_magick-0.3.3 test/attachment_magick/units/artist_test.rb