Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 732956 - dev-ruby/faraday-1.0.1 fails tests: "NameError: uninitialized constant Faraday"
Summary: dev-ruby/faraday-1.0.1 fails tests: "NameError: uninitialized constant Faraday"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2020-07-16 21:15 UTC by Jonathan Lovelace
Modified: 2020-07-20 06:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-ruby:faraday-1.0.1:20200716-211125.log (dev-ruby:faraday-1.0.1:20200716-211125.log,34.69 KB, text/plain)
2020-07-16 21:15 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,7.30 KB, text/plain)
2020-07-16 21:16 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2020-07-16 21:15:39 UTC
Created attachment 649582 [details]
dev-ruby:faraday-1.0.1:20200716-211125.log

=dev-ruby/faraday-1.0.1 (when this SLOT is not already installed) fails its test phase with several test failures with the error "NameError: unitialized constant Faraday". For example:


-------
# ./spec/spec_helper.rb:20:in `<top (required)>'

An error occurred while loading ./spec/faraday/adapter/httpclient_spec.rb.
Failure/Error:
  RSpec.describe Faraday::Adapter::HTTPClient do
    # ruby gem defaults for testing purposes
    HTTPCLIENT_OPEN = 60
    HTTPCLIENT_READ = 60
    HTTPCLIENT_WRITE = 120
  
    features :request_body_on_query_methods, :reason_phrase_parse, :compression,
             :trace_method, :local_socket_binding
  
    it_behaves_like 'an adapter'

NameError:
  uninitialized constant Faraday
-------

There's also an error at the beginning where it tries and fails to load "simplecov" if dev-ruby/simplecov is not installed.
Comment 1 Jonathan Lovelace 2020-07-16 21:16:03 UTC
Created attachment 649584 [details]
emerge-info.txt
Comment 2 Larry the Git Cow gentoo-dev 2020-07-20 06:49:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb7bccad9d8ebf3e7de023c512905111fdac8109

commit eb7bccad9d8ebf3e7de023c512905111fdac8109
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2020-07-20 06:49:21 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2020-07-20 06:49:32 +0000

    dev-ruby/faraday: fix tests
    
    Avoid dependency on some development tools.
    
    Closes: https://bugs.gentoo.org/732956
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-ruby/faraday/faraday-1.0.1.ebuild | 3 +++
 1 file changed, 3 insertions(+)