Re: [rspec-users] Someone please name this matcher for me

2008-08-07 Thread Kyle Hargraves
On Wed, Aug 6, 2008 at 1:25 PM, Cohen, Joseph <[EMAIL PROTECTED]> wrote: > > Consider: > should_have_the_same_members_as Similarly, I have a have_same_elements_as(arr) matcher. k ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.or

Re: [rspec-users] Someone please name this matcher for me

2008-08-07 Thread Cohen, Joseph
Lots of good, interesting suggestions. If you don't mind its length, for the non-mathematically inclined something like has_same_members_as may be easier to remember and corresponds to Ruby's member? predicate. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Beh

[rspec-users] Can't test for page content after a redirect

2008-08-07 Thread Christian Lescuyer
I'm trying to verify that data entered in a form has been saved in the database. Scenario: User enters a bookmark URL Given a bookmark 'http://www.gotapi.com/rubyrails' When the user adds the bookmark Then should redirect to '/' And the page should contain 'http://www.gotapi.com/

Re: [rspec-users] Can't test for page content after a redirect

2008-08-07 Thread Zach Dennis
On Thu, Aug 7, 2008 at 2:44 PM, Christian Lescuyer <[EMAIL PROTECTED]> wrote: > I'm trying to verify that data entered in a form has been saved in the > database. > > Scenario: User enters a bookmark URL >Given a bookmark 'http://www.gotapi.com/rubyrails' >When the user adds the bookmark >

Re: [rspec-users] Can't test for page content after a redirect

2008-08-07 Thread Christian Lescuyer
Thanks! I will try this tomorrow. Xtian -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users