Properly name a support files folder
This commit is contained in:
parent
aabfe28a71
commit
bfa2d5748d
7 changed files with 7 additions and 7 deletions
|
@ -21,7 +21,7 @@ describe ApiCarto::API do
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when request return 500' do
|
context 'when request return 500' do
|
||||||
let(:geojson) { File.read('spec/support/files/geojson/request_qp.json') }
|
let(:geojson) { File.read('spec/support/files/api_carto/request_qp.json') }
|
||||||
let(:status) { 500 }
|
let(:status) { 500 }
|
||||||
let(:body) { 'toto' }
|
let(:body) { 'toto' }
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ describe ApiCarto::API do
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when geojson exist' do
|
context 'when geojson exist' do
|
||||||
let(:geojson) { File.read('spec/support/files/geojson/request_qp.json') }
|
let(:geojson) { File.read('spec/support/files/api_carto/request_qp.json') }
|
||||||
let(:status) { 200 }
|
let(:status) { 200 }
|
||||||
let(:body) { 'toto' }
|
let(:body) { 'toto' }
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ describe ApiCarto::API do
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when geojson is at format JSON' do
|
context 'when geojson is at format JSON' do
|
||||||
let(:geojson) { JSON.parse(File.read('spec/support/files/geojson/request_qp.json')) }
|
let(:geojson) { JSON.parse(File.read('spec/support/files/api_carto/request_qp.json')) }
|
||||||
|
|
||||||
it 'returns response body' do
|
it 'returns response body' do
|
||||||
expect(subject).to eq(body)
|
expect(subject).to eq(body)
|
||||||
|
@ -69,7 +69,7 @@ describe ApiCarto::API do
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when geojson exist' do
|
context 'when geojson exist' do
|
||||||
let(:geojson) { File.read('spec/support/files/geojson/request_cadastre.json') }
|
let(:geojson) { File.read('spec/support/files/api_carto/request_cadastre.json') }
|
||||||
let(:status) { 200 }
|
let(:status) { 200 }
|
||||||
let(:body) { 'toto' }
|
let(:body) { 'toto' }
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ describe ApiCarto::API do
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when geojson is at format JSON' do
|
context 'when geojson is at format JSON' do
|
||||||
let(:geojson) { JSON.parse(File.read('spec/support/files/geojson/request_cadastre.json')) }
|
let(:geojson) { JSON.parse(File.read('spec/support/files/api_carto/request_cadastre.json')) }
|
||||||
|
|
||||||
it 'returns response body' do
|
it 'returns response body' do
|
||||||
expect(subject).to eq(body)
|
expect(subject).to eq(body)
|
||||||
|
|
|
@ -13,7 +13,7 @@ describe ApiCarto::Cadastre::Adapter do
|
||||||
context 'coordinates are filled' do
|
context 'coordinates are filled' do
|
||||||
let(:coordinates) { '[[2.252728, 43.27151][2.323223, 32.835332]]' }
|
let(:coordinates) { '[[2.252728, 43.27151][2.323223, 32.835332]]' }
|
||||||
let(:status) { 200 }
|
let(:status) { 200 }
|
||||||
let(:body) { File.read('spec/support/files/geojson/response_cadastre.json') }
|
let(:body) { File.read('spec/support/files/api_carto/response_cadastre.json') }
|
||||||
|
|
||||||
it { expect(subject).to be_a_instance_of(Array) }
|
it { expect(subject).to be_a_instance_of(Array) }
|
||||||
it { expect(subject.size).to eq(16) }
|
it { expect(subject.size).to eq(16) }
|
||||||
|
|
|
@ -13,7 +13,7 @@ describe ApiCarto::QuartiersPrioritaires::Adapter do
|
||||||
context 'coordinates are filled' do
|
context 'coordinates are filled' do
|
||||||
let(:coordinates) { '[[2.252728, 43.27151][2.323223, 32.835332]]' }
|
let(:coordinates) { '[[2.252728, 43.27151][2.323223, 32.835332]]' }
|
||||||
let(:status) { 200 }
|
let(:status) { 200 }
|
||||||
let(:body) { File.read('spec/support/files/geojson/response_qp.json') }
|
let(:body) { File.read('spec/support/files/api_carto/response_qp.json') }
|
||||||
|
|
||||||
it { expect(subject).to be_a_instance_of(Array) }
|
it { expect(subject).to be_a_instance_of(Array) }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue