Sha256: c5d226070b99e08a6930f6dfbf8a48a9316c17f4811727d12e77fc02000668c3

Contents?: true

Size: 740 Bytes

Versions: 19

Compression:

Stored size: 740 Bytes

Contents

require 'test_helper'

class ImageTest < ActiveSupport::TestCase

  fixtures :images

  def test_titles
    assert_equal "The%20world!.gif", images(:the_world).filename
    assert_equal "The World!", images(:the_world).title

    assert_equal "car-wallpapers19.jpg", images(:our_car).filename
    assert_equal "Car Wallpapers19", images(:our_car).title
  end

  def test_per_page
    assert_equal 18, Image.per_page(dialog = true)
    assert_equal 20, Image.per_page # dialog = false
  end

  def test_attachment_fu_options
    assert_equal 20.megabytes, Image.attachment_options[:max_size]

    # want to change this to ImageScience at some point. Rmagick sucks.
    assert_equal 'Rmagick', Image.attachment_options[:processor]
  end

end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
refinerycms-0.9.6.34 test/unit/image_test.rb
refinerycms-0.9.6.33 test/unit/image_test.rb
refinerycms-0.9.6.32 test/unit/image_test.rb
refinerycms-0.9.6.31 test/unit/image_test.rb
refinerycms-0.9.6.30 test/unit/image_test.rb
refinerycms-0.9.6.29 test/unit/image_test.rb
refinerycms-0.9.6.28 test/unit/image_test.rb
refinerycms-0.9.6.27 test/unit/image_test.rb
refinerycms-0.9.6.26 test/unit/image_test.rb
refinerycms-0.9.6.25 test/unit/image_test.rb
refinerycms-0.9.6.24 test/unit/image_test.rb
refinerycms-0.9.6.23 test/unit/image_test.rb
refinerycms-0.9.6.22 test/unit/image_test.rb
refinerycms-0.9.6.21 test/unit/image_test.rb
refinerycms-0.9.6.19 test/unit/image_test.rb
refinerycms-0.9.6.18 test/unit/image_test.rb
refinerycms-0.9.6.17 test/unit/image_test.rb
refinerycms-0.9.6.16 test/unit/image_test.rb
refinerycms-0.9.6.15 test/unit/image_test.rb