DEV: Fix build.

DEV: Fix build.

From c38f7b240b01411a10aadf930223573409c5e340 Mon Sep 17 00:00:00 2001
From: Bianca Nenciu <nenciu.bianca@gmail.com>
Date: Fri, 23 Nov 2018 17:34:50 +0200
Subject: [PATCH] DEV: Fix build.


diff --git a/spec/requests/user_avatars_controller_spec.rb b/spec/requests/user_avatars_controller_spec.rb
index 5e8d0e7..33a6379 100644
--- a/spec/requests/user_avatars_controller_spec.rb
+++ b/spec/requests/user_avatars_controller_spec.rb
@@ -75,7 +75,7 @@ describe UserAvatarsController do
 
       stub_request(:get, "http://cdn.com/something/else").to_return(body: 'image')
 
-      GlobalSetting.expects(:cdn_url).returns("http://awesome.com/boom")
+      GlobalSetting.stubs(:cdn_url).returns("http://awesome.com/boom")
 
       upload = Fabricate(:upload, url: "//test.s3.dualstack.us-east-1.amazonaws.com/something")

GitHub