Bug 553908 - Review Request: rubygem-shoulda - Making tests easy on the fingers and eyes
Summary: Review Request: rubygem-shoulda - Making tests easy on the fingers and eyes
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ruben Kerkhof
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 632917 (view as bug list)
Depends On:
Blocks: 553902
TreeView+ depends on / blocked
 
Reported: 2010-01-09 13:16 UTC by Jeroen van Meeuwen
Modified: 2014-08-06 18:42 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-05 10:52:25 UTC
Type: ---
Embargoed:
ruben: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Jeroen van Meeuwen 2010-01-09 13:16:46 UTC
Spec URL: http://www.kanarip.com/custom/SPECS/rubygem-shoulda.spec
SRPM URL: http://www.kanarip.com/custom/f12/SRPMS/rubygem-shoulda-2.10.2-1.fc12.src.rpm
Description: Shoulda makes it easy to write elegant, understandable, and
maintainable tests.  Shoulda consists of test macros, assertions,
and helpers added on to the Test::Unit framework.  It's fully
compatible with your existing tests, and requires no retooling
to use.

 * NOTE: rake test fails with one failure and one error, which I don't understand

Comment 1 Ruben Kerkhof 2010-01-09 16:12:28 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

Comment 2 Jeroen van Meeuwen 2010-01-09 16:52:56 UTC
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

Comment 3 Ruben Kerkhof 2010-01-09 19:13:49 UTC
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.

Comment 4 Jeroen van Meeuwen 2010-01-10 02:11:26 UTC
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:

Comment 5 Jeroen van Meeuwen 2010-01-16 13:34:32 UTC
I forgot to set a flag...

Comment 6 Jason Tibbitts 2010-01-19 19:23:14 UTC
CVS done (by process-cvs-requests.py).

Comment 7 Ruben Kerkhof 2010-01-31 14:42:12 UTC
Jeroen, can this be closed?

Comment 8 Jeroen van Meeuwen 2010-02-05 10:52:25 UTC
Yes it can.

Comment 9 Mamoru TASAKA 2010-09-12 10:34:09 UTC
*** Bug 632917 has been marked as a duplicate of this bug. ***

Comment 10 Troy Dawson 2014-08-06 16:59:30 UTC
Package Change Request
======================
Package Name: rubygem-shoulda
New Branches: epel7
Owners: tdawson

Comment 11 Gwyn Ciesla 2014-08-06 18:42:28 UTC
Git done (by process-git-requests).


Note You need to log in before you can comment on or make changes to this bug.