[rspec-users] cucumber fit step table output
seatmanu at gmail.com
Mon Dec 29 00:36:08 EST 2008
Given I do something with the following param |Key1|value1|, |Key2|
Then your step could look like
Given 'I do something with the following .*' do | table|
// your logic
On Dec 28, 2008, at 10:40 AM, Jonathan Linowes wrote:
> could you pastie an example?
> On Dec 28, 2008, at 1:19 PM, Emmanuel Pinault wrote:
>> I think this is not yet implemented. I had the same issue and was
>> told they are working on it but that they are doing a big
>> refactoring so might not be in 0.1.13 yet
>> To work around that issues. I created a helper method that can
>> print the table in one line or multiple line. Then call the method
>> with the element of the table twice. One for the table and one to
>> show them in the step. Then I made sure all the step regular
>> expresion supported that notation
>> On Dec 28, 2008, at 10:09 AM, Jonathan Linowes wrote:
>>> If this is a bug I'll submit a ticket.
>>> Or, maybe I'd doing something wrong.
>>> Using a Cucumber FIT Step Table, the scenario runs and passes (and
>>> fails when i put bad data in the table). But the console output
>>> only shows the Step text, not the table so when I read the output
>>> it's not telling me what data was actually run.
>>> Cucumber 0.1.13.2
>>> rspec-users mailing list
>>> rspec-users at rubyforge.org
>> rspec-users mailing list
>> rspec-users at rubyforge.org
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users