Skip to content

Fix spec failure with Ruby 2.5

Jacob Vosmaer requested to merge fix-ruby2.5-spec-failure into master

Failure was:

  2) GitlabNet#lfs_authenticate lfs authentication succeeded for download operation should return the correct data
     Failure/Error: expect(lfs_access.repository_http_path).to eq(repository_http_path)

       expected: "http://localhost:3000//gitlab-org/gitlab-test.git"
            got: "http://localhost:3000/gitlab-org/gitlab-test.git"

       (compared using ==)
     # ./spec/gitlab_net_spec.rb:78:in `block (6 levels) in <top (required)>'
     # /Users/jacobvosmaer/.gem/ruby/2.5.3/gems/vcr-4.0.0/lib/vcr/util/variable_args_block_caller.rb:9:in `call_block'
     # /Users/jacobvosmaer/.gem/ruby/2.5.3/gems/vcr-4.0.0/lib/vcr.rb:188:in `use_cassette'
     # ./spec/gitlab_net_spec.rb:74:in `block (5 levels) in <top (required)>'

  3) GitlabNet#lfs_authenticate lfs authentication succeeded for upload operation should return the correct data
     Failure/Error: expect(lfs_access.repository_http_path).to eq(repository_http_path)

       expected: "http://localhost:3000//gitlab-org/gitlab-test.git"
            got: "http://localhost:3000/gitlab-org/gitlab-test.git"

       (compared using ==)
     # ./spec/gitlab_net_spec.rb:89:in `block (6 levels) in <top (required)>'
     # /Users/jacobvosmaer/.gem/ruby/2.5.3/gems/vcr-4.0.0/lib/vcr/util/variable_args_block_caller.rb:9:in `call_block'
     # /Users/jacobvosmaer/.gem/ruby/2.5.3/gems/vcr-4.0.0/lib/vcr.rb:188:in `use_cassette'
     # ./spec/gitlab_net_spec.rb:85:in `block (5 levels) in <top (required)>'

Merge request reports