Sha256: d196350ad4ffaea8fc95f5ce032e98d7ebde73ba1e99f126742bd804ffa41a32
Contents?: true
Size: 671 Bytes
Versions: 2
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 => exemple_file, :priority => 0) @artist.images.create(:photo => exemple_file, :priority => 1) assert_equal @artist.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/artist_test.rb |
attachment_magick-0.3.1 | test/attachment_magick/units/artist_test.rb |