about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/concerns/export_controller_concern_spec.rb (renamed from spec/controllers/settings/exports/base_controller_spec.rb)8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/controllers/settings/exports/base_controller_spec.rb b/spec/controllers/concerns/export_controller_concern_spec.rb
index c924d449a..9d6f782b9 100644
--- a/spec/controllers/settings/exports/base_controller_spec.rb
+++ b/spec/controllers/concerns/export_controller_concern_spec.rb
@@ -2,8 +2,12 @@
 
 require 'rails_helper'
 
-describe Settings::Exports::BaseController do
+describe ApplicationController, type: :controller do
   controller do
+    include ExportControllerConcern
+    def index
+      send_export_file
+    end
     def export_data
       @export.account.username
     end
@@ -17,7 +21,7 @@ describe Settings::Exports::BaseController do
 
       expect(response).to have_http_status(:success)
       expect(response.content_type).to eq 'text/csv'
-      expect(response.headers['Content-Disposition']).to eq 'attachment; filename="base.csv"'
+      expect(response.headers['Content-Disposition']).to eq 'attachment; filename="anonymous.csv"'
       expect(response.body).to eq user.account.username
     end