Bug 630054 - Review Request: rubygem-facon - Tiny mocking library
Summary: Review Request: rubygem-facon - Tiny mocking library
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mamoru TASAKA
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-03 15:40 UTC by Michael Stahnke
Modified: 2010-09-23 12:54 UTC (History)
2 users (show)

Fixed In Version: rubygem-facon-0.4.1-2.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-11 16:10:37 UTC
Type: ---
Embargoed:
mtasaka: fedora-review+
kevin: fedora-cvs+


Attachments (Terms of Use)

Description Michael Stahnke 2010-09-03 15:40:12 UTC
Spec URL: http://stahnma.fedorapeople.org/reviews/rubygem-facon.spec
SRPM URL: http://stahnma.fedorapeople.org/reviews/rubygem-facon-0.4.1-1.fc15.src.rpm
Description:
Tiny mocking library

Comment 1 Mamoru TASAKA 2010-09-06 17:50:27 UTC
Some notes:

* Dependency
  - rubygem(hoe) is for development dependency (especially needed for "rake spec"),
    however is not needed for runtime (i.e. "R: rubygem(hoe)" is not needed)

? %check
--------------------------------------------------------------
# Requires internet connection to rubyforge
# unable to run tests on build infrastructure
--------------------------------------------------------------
  - Well, what error are you seeing without net connection?
    At least on F-14 "rake spec" works on koji (with proper BR installed,
    currently fails with "43 examples, 1 failure").

    Maybe you are seeing some working from hoe like:
--------------------------------------------------------------
Couldn't read /builddir/.rubyforge/user-config.yml. Run `rubyforge setup`.
--------------------------------------------------------------
    however this can be ignored. From rubygem-hoe History.txt:
--------------------------------------------------------------
=== 2.6.1 / 2010-06-02
  * Fix up hoe to be happy when rubyforge is missing or misconfigured
--------------------------------------------------------------

Comment 2 Michael Stahnke 2010-09-07 16:33:12 UTC
You're right about the hoe/rubyforge issue. 

Now I am trying to figure out the one failure.  It fails on Fedora, Mac OS, and RHEL.  If you have a newer ruby version, it doesn't seem to fail.  1.8.7 p302 seems to work without issues (according to a friend's install).  

I don't understand exactly what is failing.  Should I just make tests exit gracefully or keep working on the one failing?

I will also fix the R vs BR for hoe.

Comment 3 Mamoru TASAKA 2010-09-07 17:19:45 UTC
Well, I run F-14 (which is using ruby 1.8.7 p302) and $ rake spec
fails with one test:

1)
NoMethodError in 'A mock object should raise a MockExpectationError if block for expectation fails'
undefined method `message' for false:FalseClass
./spec/expectation_spec.rb:105:

If you can figure out the cause of test failure it is preferable,
however for now I think we can patch out the failing test.

Comment 4 Michael Stahnke 2010-09-07 18:57:14 UTC
Patched out failing test. 


http://stahnma.fedorapeople.org/reviews/rubygem-facon-0.4.1-2.fc15.src.rpm

Comment 5 Mamoru TASAKA 2010-09-07 20:14:24 UTC
About Patch0:

---------------------------------------------------------
patch -p1 ./%{gemdir}/gems/facon-%{version}/spec/expectation_spec.rb < %{PATCH0}
---------------------------------------------------------
- Please use defined %geminstdir macro also here.
- It is preferable to use %patch0 macro like:
----------------------------------------------------------
pushd .%{geminstdir}/spec/
%patch0 -p0
----------------------------------------------------------
  ! Note that on Fedora %patchX macro adds some additional argument
    "-s --fuzz=0", especially %patchX checks if the patch can be
    applied with no fuzz.

-------------------------------------------------------------
    This package (rubygem-facon) is APPROVED by mtasaka
-------------------------------------------------------------

Comment 6 Michael Stahnke 2010-09-07 21:17:13 UTC
Patch fixed upon import.

Comment 7 Michael Stahnke 2010-09-07 21:18:42 UTC
New Package SCM Request
=======================
Package Name: rubygem-facon 
Short Description: Tiny mocking library
Owners: stahnma
Branches: F13 F14 EL5 EL6
InitialCC:

Comment 8 Kevin Fenzi 2010-09-08 18:01:33 UTC
Git done (by process-git-requests).

Comment 9 Fedora Update System 2010-09-08 20:15:25 UTC
rubygem-facon-0.4.1-2.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/rubygem-facon-0.4.1-2.fc13

Comment 10 Fedora Update System 2010-09-08 20:15:30 UTC
rubygem-facon-0.4.1-2.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/rubygem-facon-0.4.1-2.fc14

Comment 11 Fedora Update System 2010-09-09 01:22:38 UTC
rubygem-facon-0.4.1-2.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update rubygem-facon'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/rubygem-facon-0.4.1-2.fc13

Comment 12 Mamoru TASAKA 2010-09-11 16:10:37 UTC
Closing.

Comment 13 Fedora Update System 2010-09-17 18:30:17 UTC
rubygem-facon-0.4.1-2.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2010-09-23 12:54:31 UTC
rubygem-facon-0.4.1-2.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


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