Bug 553908
| Summary: | Review Request: rubygem-shoulda - Making tests easy on the fingers and eyes | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jeroen van Meeuwen <vanmeeuwen+fedora> |
| Component: | Package Review | Assignee: | Ruben Kerkhof <ruben> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | fedora-package-review, notting, rebus, ruben, tdawson |
| Target Milestone: | --- | Flags: | ruben:
fedora-review+
gwync: fedora-cvs+ |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-02-05 10:52:25 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 553902 | ||
|
Description
Jeroen van Meeuwen
2010-01-09 13:16:46 UTC
Hi Jeroen,
- You're missing a BuildRequires on dos2unix
- You're missing a BuildRequires on rubygem-rake, rubygem-sqlite3-ruby, rubygem-mocha and rubygem-rails (for the tests)
Other than that, the tests fail for me as well, with the following output:
1) Error:
test: Post should require body to be set. (PostTest):
ArgumentError: interning empty string
config/initializers/./../../../lib/shoulda/active_record/matchers/allow_value_matcher.rb:62:in `errors_match?'
config/initializers/./../../../lib/shoulda/active_record/matchers/allow_value_matcher.rb:43:in `matches?'
config/initializers/./../../../lib/shoulda/active_record/matchers/validation_matcher.rb:44:in `disallows_value_of'
config/initializers/./../../../lib/shoulda/active_record/matchers/validate_presence_of_matcher.rb:32:in `matches?'
config/initializers/./../../../lib/shoulda/assertions.rb:49:in `assert_accepts'
config/initializers/./../../../lib/shoulda/active_record/macros.rb:41:in `__bind_1263053408_210423'
config/initializers/./../../../lib/shoulda/context.rb:351:in `call'
config/initializers/./../../../lib/shoulda/context.rb:351:in `test: Post should require body to be set. '
2) Failure:
test: should fail when trying to run: should require unique value for title. (PostTest)
[/test/fail_macros.rb:33:in `__bind_1263053408_330430'
config/initializers/./../../../lib/shoulda/context.rb:351:in `call'
config/initializers/./../../../lib/shoulda/context.rb:351:in `test: should fail when trying to run: should require unique value for title. ']:
<Test::Unit::AssertionFailedError> exception expected but was
Class: <ArgumentError>
Message: <"interning empty string">
---Backtrace---
config/initializers/./../../../lib/shoulda/active_record/helpers.rb:5:in `map'
config/initializers/./../../../lib/shoulda/active_record/helpers.rb:5:in `pretty_error_messages'
config/initializers/./../../../lib/shoulda/active_record/matchers/allow_value_matcher.rb:95:in `error_description'
config/initializers/./../../../lib/shoulda/active_record/matchers/allow_value_matcher.rb:51:in `negative_failure_message'
config/initializers/./../../../lib/shoulda/active_record/matchers/validation_matcher.rb:45:in `disallows_value_of'
config/initializers/./../../../lib/shoulda/active_record/matchers/validate_uniqueness_of_matcher.rb:103:in `validate_attribute'
config/initializers/./../../../lib/shoulda/active_record/matchers/validate_uniqueness_of_matcher.rb:72:in `matches?'
config/initializers/./../../../lib/shoulda/assertions.rb:49:in `assert_accepts'
config/initializers/./../../../lib/shoulda/active_record/macros.rb:74:in `__bind_1263053408_330430'
/usr/lib/ruby/1.8/erb.rb:716:in `to_proc'
/test/fail_macros.rb:33:in `__bind_1263053408_330430'
config/initializers/./../../../lib/shoulda/context.rb:351:in `call'
config/initializers/./../../../lib/shoulda/context.rb:351:in `test: should fail when trying to run: should require unique value for title. '
---------------
463 tests, 578 assertions, 1 failures, 1 errors
Buildrequirements have been fixed: New SPEC: http://www.kanarip.com/custom/SPECS/rubygem-shoulda.spec New SRPM: http://www.kanarip.com/custom/f12/SRPMS/rubygem-shoulda-2.10.2-2.fc12.src.rpm Thanks, much better. Would you be so kind to report the failing tests upstream? I don't consider it a blocker though. There are no further issues so this package is approved. New Package CVS Request ======================= Package Name: rubygem-shoulda Short Description: Making tests easy on the fingers and eyes Owners: kanarip Branches: EL-5 F-11 F-12 devel InitialCC: I forgot to set a flag... CVS done (by process-cvs-requests.py). Jeroen, can this be closed? Yes it can. *** Bug 632917 has been marked as a duplicate of this bug. *** Package Change Request ====================== Package Name: rubygem-shoulda New Branches: epel7 Owners: tdawson Git done (by process-git-requests). |