Sha256: eb3183611d2387040409a9238999c5b83bbba8bd93682e0697011330cb5efa4b

Contents?: true

Size: 443 Bytes

Versions: 12

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

RSpec.describe Zizia::ImporterDocumentationController, type: :controller do
  routes { Zizia::Engine.routes }

  describe "GET csv" do
    it "provides a csv download" do
      get :csv
      expect(response.headers['Content-Type']).to eq('text/csv; charset=utf-8')
      expect(response.headers['Content-Disposition']).to eq('attachment; filename="import_manifest.csv"')
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
zizia-3.1.0.alpha.01 spec/controllers/importer_documentation_controller_spec.rb
zizia-3.0.0.alpha.01 spec/controllers/importer_documentation_controller_spec.rb
zizia-2.1.0.alpha.09 spec/controllers/importer_documentation_controller_spec.rb
zizia-2.1.0.alpha.08 spec/controllers/importer_documentation_controller_spec.rb
zizia-2.1.0.alpha.07 spec/controllers/importer_documentation_controller_spec.rb
zizia-2.1.0.alpha.06 spec/controllers/importer_documentation_controller_spec.rb
zizia-2.1.0.alpha.05 spec/controllers/importer_documentation_controller_spec.rb
zizia-2.1.0.alpha.04 spec/controllers/importer_documentation_controller_spec.rb
zizia-2.1.0.alpha.03 spec/controllers/importer_documentation_controller_spec.rb
zizia-2.1.0.alpha.02 spec/controllers/importer_documentation_controller_spec.rb
zizia-2.1.0.alpha.01 spec/controllers/importer_documentation_controller_spec.rb
zizia-2.0.0.alpha.01 spec/controllers/importer_documentation_controller_spec.rb