dev-ruby/rspec-core: fix test failure

Avoid circular test dependency on dev-ruby/rspec itself.

Fixes: https://bugs.gentoo.org/662328
Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
Hans de Graaff
2018-07-29 10:24:25 +02:00
parent 7447135d39
commit ff5c103f79
2 changed files with 8 additions and 0 deletions

View File

@@ -71,6 +71,10 @@ all_ruby_prepare() {
sed -i -e '/be_highlighted/,/end/ s/32/33/' \
-e '/highlights core RSpec keyword-like methods/,/^ end/ s:^:#:' \
spec/rspec/core/formatters/syntax_highlighter_spec.rb || die
# Avoid a spec that depens on dev-ruby/rspec to lessen circular
# dependencies, bug 662328
sed -i -e '/loads mocks and expectations when the constants are referenced/askip "gentoo: bug 662328"' spec/rspec/core_spec.rb || die
}
each_ruby_prepare() {

View File

@@ -71,6 +71,10 @@ all_ruby_prepare() {
sed -i -e '/be_highlighted/,/end/ s/32/33/' \
-e '/highlights core RSpec keyword-like methods/,/^ end/ s:^:#:' \
spec/rspec/core/formatters/syntax_highlighter_spec.rb || die
# Avoid a spec that depens on dev-ruby/rspec to lessen circular
# dependencies, bug 662328
sed -i -e '/loads mocks and expectations when the constants are referenced/askip "gentoo: bug 662328"' spec/rspec/core_spec.rb || die
}
each_ruby_prepare() {