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

Segfault on step called pending #168

Open
cirosantilli opened this issue Oct 12, 2014 · 2 comments
Open

Segfault on step called pending #168

cirosantilli opened this issue Oct 12, 2014 · 2 comments

Comments

@cirosantilli
Copy link

Spinach 0.8.10

features/feature_one.feature:

Feature: Feature One
  Scenario: anything
    Then pending

features/steps/feature_one.rb:

class Spinach::Features::FeatureOne < Spinach::FeatureSteps
  step 'pending' do
    pending
  end
end

Probably a self invocation problem?

Output: https://gist.github.com/cirosantilli/ffbb1017e466a6a9cc83#file-spinach_segfault

@cirosantilli cirosantilli changed the title Segfault on step called feature Segfault on step called pending Oct 12, 2014
@oriolgual
Copy link
Member

Yup, the problem is that Spinach defines a method for each step (see https://github.com/codegram/spinach/blob/master/lib/spinach/dsl.rb#L58), maybe it's a good idea to add some kind of blocked keywords.

@ywen
Copy link
Collaborator

ywen commented Feb 27, 2015

Can this be closed as well?

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

3 participants