Bug 1413934

Summary: rubygem-railties: FTBFS test_simple_failed_test
Product: [Fedora] Fedora Reporter: Jun Aruga <jaruga>
Component: rubygem-railtiesAssignee: Pavel Valena <pvalena>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mmorsi, pvalena, strzibny, vondruch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: rubygem-railties-5.0.1-2.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-23 13:07:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jun Aruga 2017-01-17 11:09:27 UTC
Description of problem:


Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. $ fedpkg scratch-build --srpm

Actual results:


* Test file: test/application/test_test.rb
Finished in 217.756894s, 0.0459 runs/s, 0.1607 assertions/s.
  1) Failure:
ApplicationTests::TestTest#test_simple_failed_test [test/application/test_test.rb:59]:
Expected false to be truthy.
10 runs, 35 assertions, 1 failures, 0 errors, 0 skips
xargs: sh: exited with status 255; aborting
error: Bad exit status from /var/tmp/rpm-tmp.galqc0 (%check)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.galqc0 (%check)
Child return code was: 1

Expected results:

The tests are succeeded.

Additional info:

1. Need this patch to fix it?


On Rails upstream, master branch(146e9288001986cd3cfb2513ba8a606e00aeb61a), the tests are succeeded.

$ git checkout master
$ bundle install --path vendor/bundle
$ bundle exec ruby -Irailties/test railties/test/application/test_test.rb 
Run options: --seed 32919

# Running:


Finished in 64.581322s, 0.1548 runs/s, 0.6503 assertions/s.

10 runs, 42 assertions, 0 failures, 0 errors, 0 skips

Comment 1 Pavel Valena 2017-01-19 16:32:23 UTC
Hello Jun,

this Failure is solved by https://github.com/rails/rails/pull/27739

I will soon build a new release with the remaining tests enabled.