pretty_face
pretty_face copied to clipboard
Undefined method 'table=' for for #<Cucumber::Ast::Step:0x3e45a30> - Scenario Outline with data table
using: pretty_face 0.9.1 cucumber 1.3.10
For the following feature file I am getting an error message:
undefined method `table=' for #<Cucumber::Ast::Step:0x3e45a30> (NoMethodError)
Example Feature:
Scenario Outline: Pretty Face records results for failed scenario outlines
Given I have a scenario outline with a data table
| <username> | <password> |
When I execute my feature file
Then the table is included in the HTML report
Examples:
| username | password |
The backtrace points to this method.
def after_step(step)
step = process_step(step) unless step_belongs_to_outline? step
if @cells
step.table = @cells
@cells = nil
end
end
The method calls step.table =, but because this step belongs to an outline, the table= method was not created in process_step.
Hi Alan,
Thanks for pointing out this issue. We are looking into this. Although, this doesn't fix the issue you pointed out, there is a new version of pretty_face available.
Sahithya
Hi I am getting the same error with the latest version of pretty_face gem when running the cucumber tests
undefined method `table=' for #Cucumber::Ast::Step:0x007fc9be0e9cc0 (NoMethodError)
Can you please help me with this issue?
Priya
Hi Sahithya,
I still see the error with v 0.1. Is there a work-around?
Hi @sahithya
I too am still facing this problem with your gem. To clarify it is only when putting a table as part of a step, rather than the Examples:
table
If you guys are not fixing it anymore could you please point me in the direction of your work so far?
Cheers