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