Source: ruby-protected-attributes Version: 1.1.3-2 Severity: serious Tags: ftbfs
ruby-protected-attributes fails to build from source reliably now. On my system as well as on reproducible builds, I consistently see the very same three failures: | Finished in 0.447334s, 453.7994 runs/s, 1629.6540 assertions/s. | | 1) Error: | AccessibleParamsWrapperTest#test_accessible_wrapped_keys_from_matching_model: | Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test | /<<PKGBUILDDIR>>/test/accessible_params_wrapper_test.rb:67:in `test_accessible_wrapped_keys_from_matching_model' | | 2) Error: | AccessibleParamsWrapperTest#test_derived_wrapped_keys_from_matching_model: | Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test | /<<PKGBUILDDIR>>/test/accessible_params_wrapper_test.rb:41:in `test_derived_wrapped_keys_from_matching_model' | | 3) Error: | AccessibleParamsWrapperTest#test_derived_wrapped_keys_from_specified_model: | Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test | /<<PKGBUILDDIR>>/test/accessible_params_wrapper_test.rb:54:in `block in test_derived_wrapped_keys_from_specified_model' | /<<PKGBUILDDIR>>/test/accessible_params_wrapper_test.rb:9:in `with_default_wrapper_options' | /<<PKGBUILDDIR>>/test/accessible_params_wrapper_test.rb:53:in `test_derived_wrapped_keys_from_specified_model' | | 203 runs, 729 assertions, 0 failures, 3 errors, 0 skips | rake aborted! | Command failed with status (1): [ruby -w -I"test" "/usr/lib/ruby/vendor_ruby/rake/rake_test_loader.rb" "test/accessible_params_wrapper_test.rb" "test/attribute_sanitization_test.rb" "test/mass_assignment_security/black_list_test.rb" "test/mass_assignment_security/permission_set_test.rb" "test/mass_assignment_security/sanitizer_test.rb" "test/mass_assignment_security/strong_parameters_fallback_test.rb" "test/mass_assignment_security/white_list_test.rb" "test/mass_assignment_security_test.rb" "test/test_helper.rb" -v] | | Tasks: TOP => default | (See full trace by running task with --trace) | ERROR: Test "ruby2.5" failed. Exiting. | dh_auto_install: dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-protected-attributes returned exit code 1 | make: *** [debian/rules:6: binary] Error 1 | dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2 Helmut