public
Description: Rails plugin for uploading images as resources, with support for resizing, text stamping, and other special effects.
Homepage: http://wiki.github.com/Squeegy/fleximage
Clone URL: git://github.com/Squeegy/fleximage.git
Don't run network dependant tests unless there is an internet connection 
available
Squeegy (author)
Sat Apr 26 09:36:10 -0700 2008
commit  d45cfc247a74c2614de0fe83a87f866c43d278c7
tree    d794f185deb04d780ca0c2de8341b3b23afd6620
parent  dd9ed4295c67d493e88dfb39875f417253e10f28
...
4
5
6
 
 
7
8
9
...
11
12
13
 
 
14
15
16
...
18
19
20
 
 
21
22
...
4
5
6
7
8
9
10
11
...
13
14
15
16
17
18
19
20
...
22
23
24
25
26
27
28
0
@@ -4,6 +4,8 @@ class FleximageFileUploadFromUrlTest < Test::Unit::TestCase
0
   def test_should_be_valid_with_image_from_url
0
     p = PhotoBare.new(:image_file_url => files(:web_photo))
0
     assert p.save, 'Record expected to be valid after upload via URL'
0
+  rescue SocketError
0
+    print '!'
0
   end
0
   
0
   def test_should_be_invalid_with_nonimage_from_url
0
@@ -11,6 +13,8 @@ class FleximageFileUploadFromUrlTest < Test::Unit::TestCase
0
     assert !p.save, 'Record expected to be invalid after upload via URL'
0
     assert_equal 1, p.errors.size
0
     assert_equal 'was not a readable image', p.errors.on(:image_file_url)
0
+  rescue SocketError
0
+    print '!'
0
   end
0
   
0
   def test_should_be_invalid_with_invalid_url
0
@@ -18,5 +22,7 @@ class FleximageFileUploadFromUrlTest < Test::Unit::TestCase
0
     assert !p.save, 'Record expected to be invalid after upload via URL'
0
     assert_equal 1, p.errors.size
0
     assert_equal 'was not a readable image', p.errors.on(:image_file_url)
0
+  rescue SocketError
0
+    print '!'
0
   end
0
 end
...
13
14
15
 
 
16
17
...
13
14
15
16
17
18
19
0
@@ -13,5 +13,7 @@ class FleximageMagicColumnsTest < Test::Unit::TestCase
0
     assert_equal files(:web_photo), p.image_filename
0
     assert_equal 110,   p.image_height
0
     assert_equal 276,   p.image_width
0
+  rescue SocketError
0
+    print '!'
0
   end
0
 end

Comments