@@ -292,7 +292,7 @@ def default_url
292292
293293 describe "#remote_image_url" do
294294 before do
295- stub_request ( :get , "www.example.com/test.jpg" ) . to_return ( body : File . read ( file_path ( "test.jpg" ) ) )
295+ stub_request ( :get , "http:// www.example.com/test.jpg" ) . to_return ( body : File . read ( file_path ( "test.jpg" ) ) )
296296 end
297297
298298 it "returns nil" do
@@ -327,7 +327,7 @@ def default_url
327327
328328 describe "#remote_image_url=" do
329329 before do
330- stub_request ( :get , "www.example.com/test.jpg" ) . to_return ( body : File . read ( file_path ( "test.jpg" ) ) )
330+ stub_request ( :get , "http:// www.example.com/test.jpg" ) . to_return ( body : File . read ( file_path ( "test.jpg" ) ) )
331331 end
332332
333333 it "does nothing when nil is assigned" do
@@ -471,7 +471,7 @@ def extension_whitelist
471471 end
472472
473473 it "should be an error instance if file was downloaded" do
474- stub_request ( :get , "www.example.com/test.jpg" ) . to_return ( body : File . read ( file_path ( "test.jpg" ) ) )
474+ stub_request ( :get , "http:// www.example.com/test.jpg" ) . to_return ( body : File . read ( file_path ( "test.jpg" ) ) )
475475 @instance . remote_image_url = "http://www.example.com/test.jpg"
476476 e = @instance . image_integrity_error
477477
@@ -516,7 +516,7 @@ def monkey
516516 end
517517
518518 it "should be an error instance if file was downloaded" do
519- stub_request ( :get , "www.example.com/test.jpg" ) . to_return ( body : File . read ( file_path ( "test.jpg" ) ) )
519+ stub_request ( :get , "http:// www.example.com/test.jpg" ) . to_return ( body : File . read ( file_path ( "test.jpg" ) ) )
520520 @instance . remote_image_url = "http://www.example.com/test.jpg"
521521
522522 expect ( @instance . image_processing_error ) . to be_an_instance_of ( CarrierWave ::ProcessingError )
@@ -526,8 +526,8 @@ def monkey
526526
527527 describe '#image_download_error' do
528528 before do
529- stub_request ( :get , "www.example.com/test.jpg" ) . to_return ( body : File . read ( file_path ( "test.jpg" ) ) )
530- stub_request ( :get , "www.example.com/missing.jpg" ) . to_return ( status : 404 )
529+ stub_request ( :get , "http:// www.example.com/test.jpg" ) . to_return ( body : File . read ( file_path ( "test.jpg" ) ) )
530+ stub_request ( :get , "http:// www.example.com/missing.jpg" ) . to_return ( status : 404 )
531531 end
532532
533533 it "should be nil by default" do
@@ -547,8 +547,8 @@ def monkey
547547
548548 describe '#image_download_error' do
549549 before do
550- stub_request ( :get , "www.example.com/test.jpg" ) . to_return ( body : File . read ( file_path ( "test.jpg" ) ) )
551- stub_request ( :get , "www.example.com/missing.jpg" ) . to_return ( status : 404 )
550+ stub_request ( :get , "http:// www.example.com/test.jpg" ) . to_return ( body : File . read ( file_path ( "test.jpg" ) ) )
551+ stub_request ( :get , "http:// www.example.com/missing.jpg" ) . to_return ( status : 404 )
552552 end
553553
554554 it "should be nil by default" do
@@ -702,7 +702,7 @@ def extension_whitelist
702702 end
703703
704704 it "should raise an error if the image fails an integrity check when downloaded" do
705- stub_request ( :get , "www.example.com/test.jpg" ) . to_return ( body : File . read ( file_path ( "test.jpg" ) ) )
705+ stub_request ( :get , "http:// www.example.com/test.jpg" ) . to_return ( body : File . read ( file_path ( "test.jpg" ) ) )
706706
707707 expect ( running {
708708 @instance . remote_image_url = "http://www.example.com/test.jpg"
@@ -736,7 +736,7 @@ def monkey
736736 end
737737
738738 it "should raise an error if the image fails to be processed when downloaded" do
739- stub_request ( :get , "www.example.com/test.jpg" ) . to_return ( body : File . read ( file_path ( "test.jpg" ) ) )
739+ stub_request ( :get , "http:// www.example.com/test.jpg" ) . to_return ( body : File . read ( file_path ( "test.jpg" ) ) )
740740
741741 expect ( running {
742742 @instance . remote_image_url = "http://www.example.com/test.jpg"
0 commit comments