FIX: Our rspec suite should not require a network connection to github

FIX: Our rspec suite should not require a network connection to github

diff --git a/spec/requests/admin/themes_controller_spec.rb b/spec/requests/admin/themes_controller_spec.rb
index c20b128..539eddb 100644
--- a/spec/requests/admin/themes_controller_spec.rb
+++ b/spec/requests/admin/themes_controller_spec.rb
@@ -81,6 +81,7 @@ describe Admin::ThemesController do
     end
 
     it 'can import a theme from Git' do
+      RemoteTheme.stubs(:import_theme)
       post "/admin/themes/import.json", params: {
         remote: '    https://github.com/discourse/discourse-brand-header       '
       }

GitHub sha: 17600694

2 Likes