spec/integration/app_spec.rb in pact_broker-1.9.1 vs spec/integration/app_spec.rb in pact_broker-1.9.2
- old
+ new
@@ -13,11 +13,11 @@
let(:hal_browser_enabled) { true }
let(:group_url) { '/groups/Some%20Consumer' }
let(:enable_diagnostic_endpoints) { false }
let(:app) do
- app = PactBroker::App.new do | config |
+ PactBroker::App.new do | config |
config.auto_migrate_db = false
config.use_hal_browser = hal_browser_enabled
config.database_connection = ::DB::PACT_BROKER_DB
config.enable_diagnostic_endpoints = enable_diagnostic_endpoints
end
@@ -124,10 +124,10 @@
let(:path) { '/groups/Some%20Consumer.csv' }
it "returns the CSV Content-Type" do
expect(subject.status).to eq 200
- expect(subject.headers['Content-Type']).to eq "text/csv"
+ expect(subject.headers['Content-Type']).to eq "text/csv;charset=utf-8"
end
end
end