Skip to content

Commit 37fa80d

Browse files
tobias-grasselgebhardt
authored andcommitted
Clean up after test
Test suite runs fine without this locally (ruby 2.6.3, Rails 5.2.3), but Travis CI builds all fail because subsequent tests expect a clean base URL. Signed-off-by: Tobias Grasse <tg@glancr.de>
1 parent 4cc1e5e commit 37fa80d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/controllers/controller_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def test_links_include_relative_root
1414
Rails.application.config.relative_url_root = '/subdir'
1515
assert_cacheable_get :index
1616
assert json_response['data'][0]['links']['self'].include?('/subdir')
17+
Rails.application.config.relative_url_root = nil
1718
end
1819

1920
def test_index

0 commit comments

Comments
 (0)