pretty_face icon indicating copy to clipboard operation
pretty_face copied to clipboard

Undefined method 'table=' for for #<Cucumber::Ast::Step:0x3e45a30> - Scenario Outline with data table

Open AlanLGuy opened this issue 11 years ago • 4 comments

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.

AlanLGuy avatar Dec 06 '13 21:12 AlanLGuy

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

sahithya avatar Feb 05 '14 02:02 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

pahlawat avatar Sep 02 '14 15:09 pahlawat

Hi Sahithya,

I still see the error with v 0.1. Is there a work-around?

frankGracias avatar Dec 08 '14 00:12 frankGracias

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

Greeff avatar Sep 16 '15 07:09 Greeff