Tests failures

2 views
Skip to first unread message

Archiloque

unread,
Dec 13, 2009, 6:43:37 AM12/13/09
to couc...@googlegroups.com
Hi,

Yesterday I installed the latest ubuntu with
- ruby 1.8 (ruby 1.8.7 2009-06-12 patchlevel 174)
- ruby 1.9 (ruby 1.9.0 2008-10-04 revision 19669)
- couchdb (0.10.0)
- the couchrest code from github.

I have 2 tests failure with ruby 1.8 :
1)
'CouchRest::Database saving a view should work properly' FAILED
expected: 1,
got: 0 (using ==)
./spec/couchrest/core/database_spec.rb:83:

2)
'CouchRest::CastedModel saving document with array of casted models
and validation should save' FAILED
expected true, got false
./spec/couchrest/more/casted_model_spec.rb:211:


and 30 with ruby 1.9

Does this come from an error in my environment or is the current
master unstable ?

A.

J. Chris Anderson

unread,
Dec 20, 2009, 2:22:56 PM12/20/09
to CouchRest

Thanks for the question.

I updated CouchRest to fix the first failure you listed. I have been
unable to reproduce the other failure.

All tests pass for me on ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-
darwin10.2.0].

On ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin10.2.0] I
get only 1 failure:

1)
NoMethodError in 'ExtendedDocument views with a collection should
provide a class method to get a collection for a view'
undefined method `provides_collection' for #<Class:
0x00000102441e90>::Article
/Users/jchris/code/old-couchrest/spec/couchrest/more/
extended_doc_view_spec.rb:412:in `<class:Article>'
/Users/jchris/code/old-couchrest/spec/couchrest/more/
extended_doc_view_spec.rb:411:in `block (3 levels) in <top (required)
>'

I'm hoping someone else can fix this, as I'm not familiar with this
part of the code base.

Chris

>
> A.

Matt Aimonetti

unread,
Dec 20, 2009, 2:36:18 PM12/20/09
to couc...@googlegroups.com
Chris,

I think you might want to give commit access to someone else who's willing to maintain the project.
I receive pull requests but I don't have time to check and apply them, I'm sure lots of people would be interested in helping.

- Matt


--

You received this message because you are subscribed to the Google Groups "CouchRest" group.
To post to this group, send email to couc...@googlegroups.com.
To unsubscribe from this group, send email to couchrest+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/couchrest?hl=en.



Chris Anderson

unread,
Dec 20, 2009, 4:12:46 PM12/20/09
to couc...@googlegroups.com
Thanks -- anyone who wants commit-bit, let me know. I'll start a
bigger search in a bit.

--
Chris Anderson
http://jchrisa.net
http://couch.io

Archiloque

unread,
Dec 20, 2009, 2:49:36 PM12/20/09
to couc...@googlegroups.com

Le 20 déc. 09 à 20:22, J. Chris Anderson a écrit :

With lastest code:
with ruby ruby 1.8.7 (2009-06-12 patchlevel 174) the first error is
fixed, and the second one is still here
with ruby ruby 1.9.1p243 the second error is here too, and I have
another one

NoMethodError in 'ExtendedDocument views with a collection should
provide a class method to get a collection for a view'

undefined method `provides_collection' for #<Class:0x9bf9ddc>::Article
/home/archiloque/Documents/code/couchrest/spec/couchrest/more/

extended_doc_view_spec.rb:412:in `<class:Article>'

/home/archiloque/Documents/code/couchrest/spec/couchrest/more/

extended_doc_view_spec.rb:411:in `block (3 levels) in <top (required)>'

A.

Archiloque

unread,
Dec 20, 2009, 2:52:07 PM12/20/09
to couc...@googlegroups.com
>
> with ruby ruby 1.9.1p243 the second error is here too, and I have
> another one
>
> NoMethodError in 'ExtendedDocument views with a collection should
> provide a class method to get a collection for a view'
> undefined method `provides_collection' for #<Class:0x9bf9ddc>::Article
> /home/archiloque/Documents/code/couchrest/spec/couchrest/more/
> extended_doc_view_spec.rb:412:in `<class:Article>'
> /home/archiloque/Documents/code/couchrest/spec/couchrest/more/
> extended_doc_view_spec.rb:411:in `block (3 levels) in <top
> (required)>'

This one is the same you mentioned in your mail, sorry for the noise

A.

J. Chris Anderson

unread,
Dec 20, 2009, 4:15:00 PM12/20/09
to CouchRest

On Dec 20, 11:49 am, Archiloque <c...@archiloque.net> wrote:
> Le 20 déc. 09 à 20:22, J. Chris Anderson a écrit :
>
>
>
>
>
>
>
> > On Dec 13, 3:43 am, Archiloque <c...@archiloque.net> wrote:
> >> Hi,
>
> >> Yesterday I installed the latest ubuntu with
> >> - ruby 1.8 (ruby 1.8.7 2009-06-12 patchlevel 174)
> >> - ruby 1.9 (ruby 1.9.0 2008-10-04 revision 19669)
> >> - couchdb (0.10.0)
> >> - the couchrest code from github.
>

If anyone's got time to fix this I'd be happy to accept a patch.

John Wood

unread,
Jan 7, 2010, 9:56:29 AM1/7/10
to couc...@googlegroups.com
Hi,

Sorry for the delay, but I've just submitted a pull request to fix this test.  You can see the commit here: http://github.com/jwood/couchrest/commit/63e7f310fb6457668bf6eb6f396ed32dfbc434a8

- John
 
---------------------------------
http://johnpwood.net



From: J. Chris Anderson <jch...@apache.org>
To: CouchRest <couc...@googlegroups.com>
Sent: Sun, December 20, 2009 1:22:56 PM
Subject: [couchrest] Re: Tests failures
--

You received this message because you are subscribed to the Google Groups "CouchRest" group.
To post to this group, send email to couc...@googlegroups.com.
To unsubscribe from this group, send email to couchrest+unsub...@googlegroups.com.

Archiloque

unread,
Jan 7, 2010, 12:44:43 PM1/7/10
to couc...@googlegroups.com
Le 7 janv. 10 à 15:56, John Wood a écrit :

> Hi,
>
> Sorry for the delay, but I've just submitted a pull request to fix
> this test. You can see the commit here: http://github.com/jwood/couchrest/commit/63e7f310fb6457668bf6eb6f396ed32dfbc434a8
>
> - John
>
> ---------------------------------
> http://johnpwood.net


Hi,

jwood/couchrest 1.8

1)
'ExtendedDocument with default should automatically call a proc
default at initialization' FAILED
expected: < Thu Jan 07 18:35:10 +0100 2010,
got: Thu Jan 07 18:35:10 +0100 2010
./spec/couchrest/more/extended_doc_spec.rb:230:

2)
'CouchRest::CastedModel saving document with array of casted models
and validation should save' FAILED
expected true, got false
./spec/couchrest/more/casted_model_spec.rb:211:

jwood/couchrest rake1.9

1)


'CouchRest::CastedModel saving document with array of casted models
and validation should save' FAILED
expected true, got false

/home/archiloque/Documents/code/couchrest/spec/couchrest/more/
casted_model_spec.rb:211:in `block (3 levels) in <top (required)>'

couchrest/couchrest 1.8

1)


'CouchRest::CastedModel saving document with array of casted models
and validation should save' FAILED
expected true, got false
./spec/couchrest/more/casted_model_spec.rb:211:

couchrest/couchrest 1.9

1)


'CouchRest::CastedModel saving document with array of casted models
and validation should save' FAILED
expected true, got false

/home/archiloque/Documents/code/couchrest/spec/couchrest/more/
casted_model_spec.rb:211:in `block (3 levels) in <top (required)>'

2)


NoMethodError in 'ExtendedDocument views with a collection should
provide a class method to get a collection for a view'

undefined method `provides_collection' for #<Class:0x9870038>::Article
/home/archiloque/Documents/code/couchrest/spec/couchrest/more/

extended_doc_view_spec.rb:412:in `<class:Article>'

/home/archiloque/Documents/code/couchrest/spec/couchrest/more/

extended_doc_view_spec.rb:411:in `block (3 levels) in <top (required)>'


A.

John Wood

unread,
Jan 7, 2010, 12:56:12 PM1/7/10
to couc...@googlegroups.com
All tests passed for me on jwood/couchrest using ruby 1.8.6 and ruby-1.9.1-p376.


- John 
 
---------------------------------
http://johnpwood.net



From: Archiloque <co...@archiloque.net>
To: couc...@googlegroups.com
Sent: Thu, January 7, 2010 11:44:43 AM
Subject: Re: [couchrest] Re: Tests failures

Le 7 janv. 10 à 15:56, John Wood a écrit :

> Hi,
>
> Sorry for the delay, but I've just submitted a pull request to fix this test.  You can see the commit here: http://github.com/jwood/couchrest/commit/63e7f310fb6457668bf6eb6f396ed32dfbc434a8
>
> - John
>
> ---------------------------------
> http://johnpwood.net


Hi,

jwood/couchrest 1.8

1)
'ExtendedDocument with default should automatically call a proc default at initialization' FAILED
expected: < Thu Jan 07 18:35:10 +0100 2010,
    got:  Thu Jan 07 18:35:10 +0100 2010
./spec/couchrest/more/extended_doc_spec.rb:230:

2)
'CouchRest::CastedModel saving document with array of casted models and validation should save' FAILED
expected true, got false
./spec/couchrest/more/casted_model_spec.rb:211:



jwood/couchrest rake1.9

1)
'CouchRest::CastedModel saving document with array of casted models and validation should save' FAILED
expected true, got false
/home/archiloque/Documents/code/couchrest/spec/couchrest/more/casted_model_spec.rb:211:in `block (3 levels) in <top (required)>'




couchrest/couchrest 1.8

1)
'CouchRest::CastedModel saving document with array of casted models and validation should save' FAILED
expected true, got false
./spec/couchrest/more/casted_model_spec.rb:211:



couchrest/couchrest 1.9

1)
'CouchRest::CastedModel saving document with array of casted models and validation should save' FAILED
expected true, got false
/home/archiloque/Documents/code/couchrest/spec/couchrest/more/casted_model_spec.rb:211:in `block (3 levels) in <top (required)>'


2)
NoMethodError in 'ExtendedDocument views with a collection should provide a class method to get a collection for a view'
undefined method `provides_collection' for #<Class:0x9870038>::Article
/home/archiloque/Documents/code/couchrest/spec/couchrest/more/extended_doc_view_spec.rb:412:in `<class:Article>'
/home/archiloque/Documents/code/couchrest/spec/couchrest/more/extended_doc_view_spec.rb:411:in `block (3 levels) in <top (required)>'


A.--

Chris Anderson

unread,
Jan 7, 2010, 1:11:37 PM1/7/10
to couc...@googlegroups.com
On Thu, Jan 7, 2010 at 9:56 AM, John Wood <john_...@yahoo.com> wrote:
> All tests passed for me on jwood/couchrest using ruby 1.8.6 and
> ruby-1.9.1-p376.

This looks good to me.

Any of the new committers want to do the honor of merging to
couchrest/couchrest?

Thanks!

Chris

> couchrest+...@googlegroups.com.


> For more options, visit this group at
> http://groups.google.com/group/couchrest?hl=en.
>
>
>
>

> --


> You received this message because you are subscribed to the Google Groups
> "CouchRest" group.
> To post to this group, send email to couc...@googlegroups.com.
> To unsubscribe from this group, send email to

> couchrest+...@googlegroups.com.


> For more options, visit this group at
> http://groups.google.com/group/couchrest?hl=en.
>
>

--

will leinweber

unread,
Jan 7, 2010, 1:34:49 PM1/7/10
to couc...@googlegroups.com
On Thu, Jan 7, 2010 at 12:11 PM, Chris Anderson <jch...@apache.org> wrote:
On Thu, Jan 7, 2010 at 9:56 AM, John Wood <john_...@yahoo.com> wrote:
> All tests passed for me on jwood/couchrest using ruby 1.8.6 and
> ruby-1.9.1-p376.

This looks good to me.

Any of the new committers want to do the honor of merging to
couchrest/couchrest?

Thanks!

Chris

Reply all
Reply to author
Forward
0 new messages