diff --git a/spec/requests/user_avatars_controller_spec.rb b/spec/requests/user_avatars_controller_spec.rb index 5e8d0e79b09..33a63799d7d 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")