• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

camptocamp / facterdb / 426
100%

Build:
DEFAULT BRANCH: master
Ran 29 Dec 2020 04:01PM UTC
Jobs 1
Files 1
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
426

push

travis-ci

mcanevet
facts_spec: Pathname class is missing

In debian's CI environment, running the spec tests fails with the
following error:

    RUBYLIB=. GEM_PATH=/<<PKGBUILDDIR>>/debian/facterdb/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/2.7.0:/var/lib/gems/2.7.0:/usr/local/lib/ruby/gems/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/lib/x86_64-linux-gnu/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0 ruby2.7 -S rake -f debian/ruby-tests.rake
    /usr/bin/ruby2.7 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.9.3/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation

    An error occurred while loading ./spec/facts_spec.rb.
    Failure/Error: project_dir = Pathname.new(__dir__).parent

    NameError:
      uninitialized constant Pathname
    # ./spec/facts_spec.rb:84:in `block in <top (required)>'
    # ./spec/facts_spec.rb:42:in `<top (required)>'

    Finished in 0.00003 seconds (files took 0.16545 seconds to load)
    0 examples, 0 failures, 1 error occurred outside of examples

To fix this we simply need to make sure that the 'pathname' stdlib is
"require"d at the top of the file.

69 of 69 relevant lines covered (100.0%)

22002.13 hits per line

Jobs
ID Job ID Ran Files Coverage
1 426.1 (2.5, FACTER_GEM_VERSION="~> 2.0" COVERAGE=yes) 29 Dec 2020 04:01PM UTC 0
100.0
Travis Job 426.1
Source Files on build 426
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #426
  • db991cc8 on github
  • Prev Build on master (#424)
  • Next Build on master (#428)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc