Skip to content

Commit

Permalink
fix test by distinguish between stageportal and localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
imadbourouche committed Feb 21, 2025
1 parent ad8b7bb commit ec0d302
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/controllers/ontologies_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ class OntologiesControllerTest < ActionDispatch::IntegrationTest

test 'test get STY in xml format' do
get '/ontologies/STY', headers: { 'Accept' => 'application/xml' }
assert_response :success
if $REST_URL == "https://data.stageportal.lirmm.fr/"
assert_response :success
else
assert_equal 500, response.status # STY does not have xml in localhost:9393
end
end

test 'test get STY in csv format' do
Expand Down

0 comments on commit ec0d302

Please sign in to comment.