Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AlanLGuy opened this issue Dec 6, 2013 · 4 comments

Comments

@AlanLGuy
Copy link

AlanLGuy commented Dec 6, 2013

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.

@sahithya
Copy link
Collaborator

sahithya commented Feb 5, 2014

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

@pahlawat
Copy link

pahlawat commented Sep 2, 2014

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

@frankGracias
Copy link

Hi Sahithya,

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

@Greeff
Copy link

Greeff commented Sep 16, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants