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

camptocamp / facterdb / 426 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 29 Dec 2020 04:01PM UTC
Files 1
Run time 0s
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

29 Dec 2020 03:53PM UTC coverage: 100.0%. Remained the same
2.5, FACTER_GEM_VERSION="~> 2.0" COVERAGE=yes

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

Source Files on job 426.1 (2.5, FACTER_GEM_VERSION="~> 2.0" COVERAGE=yes)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 375
  • Travis Job 426.1
  • db991cc8 on github
  • Prev Job for 2.5, FACTER_GEM_VERSION="~> 2.0" COVERAGE=yes on master (#424.1)
  • Next Job for 2.5, FACTER_GEM_VERSION="~> 2.0" COVERAGE=yes on master (#428.1)
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

© 2026 Coveralls, Inc