Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Table diff! only raise when data is missing
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
senny  
View profile  
 More options Jan 29 2010, 5:37 am
From: senny <yves.s...@gmail.com>
Date: Fri, 29 Jan 2010 02:37:16 -0800 (PST)
Local: Fri, Jan 29 2010 5:37 am
Subject: Table diff! only raise when data is missing
Hey there

I am trying to write a step definition that only raises an error when
the data specified in the feature is not present in the actual table.
The step definition should NOT raise when the actual table contains
more data than the one specified in the feature file. I have created a
Gist to illustrate my problem: http://gist.github.com/289623

Is there a way to make this scenario pass?

Cheers,
Senny


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
darrinholst  
View profile  
 More options Jan 29 2010, 7:46 am
From: darrinholst <darrin.ho...@gmail.com>
Date: Fri, 29 Jan 2010 04:46:37 -0800 (PST)
Local: Fri, Jan 29 2010 7:46 am
Subject: Re: Table diff! only raise when data is missing
try replacing :surplus_row => false with :missing_row => false, which
reads don't raise if the expected table has missing rows...I think:)

On Jan 29, 4:37 am, senny <yves.s...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
aslak hellesoy  
View profile  
 More options Jan 29 2010, 7:55 am
From: aslak hellesoy <aslak.helle...@gmail.com>
Date: Fri, 29 Jan 2010 13:55:50 +0100
Local: Fri, Jan 29 2010 7:55 am
Subject: Re: [Cucumber:3333] Re: Table diff! only raise when data is missing

On Fri, Jan 29, 2010 at 1:46 PM, darrinholst <darrin.ho...@gmail.com> wrote:
> try replacing :surplus_row => false with :missing_row => false, which
> reads don't raise if the expected table has missing rows...I think:)

But the table passed as an argument to diff! doesn't have missing rows
- it has surplus rows. There is definitely a bug. See my other post.

Aslak


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
senny  
View profile  
 More options Jan 29 2010, 8:50 am
From: senny <yves.s...@gmail.com>
Date: Fri, 29 Jan 2010 05:50:45 -0800 (PST)
Local: Fri, Jan 29 2010 8:50 am
Subject: Re: Table diff! only raise when data is missing
I opened a ticket on the Lighthouse Tracker:
https://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/566-t...

Thanks for your help Aslak

On 29 Jan., 13:55, aslak hellesoy <aslak.helle...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »