diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-01-04 17:32:40 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-01-04 17:32:40 +0300 |
commit | 8707827d3925441a838ba425e65dfdb8d3845a31 (patch) | |
tree | b7ba6494bd1b421530d83713666f81636f001eab /spec/lib/api | |
parent | 476cba6ff355197ca7137af1fcab74a7d6c776ad (diff) |
Improve readablity of CI_API_V4_URL related code
Diffstat (limited to 'spec/lib/api')
-rw-r--r-- | spec/lib/api/helpers/version_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/api/helpers/version_spec.rb b/spec/lib/api/helpers/version_spec.rb index 63e7e1e6e95..34006e0930b 100644 --- a/spec/lib/api/helpers/version_spec.rb +++ b/spec/lib/api/helpers/version_spec.rb @@ -20,7 +20,7 @@ describe API::Helpers::Version do describe '#root_url' do it 'returns an URL for a root path for the API version' do expect(described_class.new('v4').root_url) - .to match %r{^http?://.*/api/v4$} + .to eq 'http://localhost/api/v4' end end end |