Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634690 - =dev-ruby/rspec-expectations-2.99.2 fails tests: rspec ./spec/rspec/matchers/be_spec.rb:311 # expect(...).to be_true is deprecated
Summary: =dev-ruby/rspec-expectations-2.99.2 fails tests: rspec ./spec/rspec/matchers/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2017-10-18 21:11 UTC by Sergei Trofimovich (RETIRED)
Modified: 2017-10-21 09:53 UTC (History)
0 users

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


Attachments
rspec-expectations-2.99.2-build.log (rspec-expectations-2.99.2-build.log,19.08 KB, text/x-log)
2017-10-18 21:11 UTC, Sergei Trofimovich (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2017-10-18 21:11:33 UTC
Created attachment 499164 [details]
rspec-expectations-2.99.2-build.log

Tests fails at least on ppc, ppc64 ia64.
Tests succees on amd64.

I suspect it has something to do with some package versions that differ slightly.

1194 examples, 5 failures, 1 pending

Failed examples:

rspec ./spec/rspec/matchers/be_spec.rb:311 # expect(...).to be_true is deprecated
rspec ./spec/rspec/matchers/operator_matcher_spec.rb:237 # operator matchers OperatorMatcher registry when accessing it using the old 2.x const name issues a deprecation warning
rspec ./spec/rspec/expectations/configuration_spec.rb:22 # RSpec::Expectations::Configuration when accessing it using the old 2.x const name issues a deprecation warning
rspec ./spec/rspec/matchers/be_spec.rb:292 # expect(...).to be_false has the correct call site in the deprecation message
rspec ./spec/rspec/matchers/be_spec.rb:287 # expect(...).to be_false is deprecated
Comment 1 Hans de Graaff gentoo-dev Security 2017-10-21 06:03:39 UTC
I suspect that this may be caused by having an older rspec already installed. Could you try again with rspec-2.99 already installed? If that fixes it I'll update the test dependencies.
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2017-10-21 09:17:35 UTC
Installing rspec-2.99 first makes tests pass. Thank you!

The previous versions installed were:

Thu Aug 24 01:53:51 2017 >>> dev-ruby/rspec-2.14.1-r1
Thu Aug 24 02:23:15 2017 >>> dev-ruby/rspec-3.5.0

I guess 2.14 was used.
Comment 3 Hans de Graaff gentoo-dev Security 2017-10-21 09:53:56 UTC
(In reply to Sergei Trofimovich from comment #2)
> Installing rspec-2.99 first makes tests pass. Thank you!
> 
> The previous versions installed were:
> 
> Thu Aug 24 01:53:51 2017 >>> dev-ruby/rspec-2.14.1-r1
> Thu Aug 24 02:23:15 2017 >>> dev-ruby/rspec-3.5.0
> 
> I guess 2.14 was used.

Thanks for the confirmation. I've updated the test dependency accordingly.