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

fix feature is nil case #188

Merged
merged 1 commit into from
Nov 21, 2016

Conversation

KazuCocoa
Copy link
Contributor

I found a nil case error when I use v3.0.0.pre.beta.4 in my project.
When turnip loads blank files such as examples/blank.feature, then we can see the following error.

./lib/turnip/rspec.rb:72:in `run': undefined method `line' for nil:NilClass (NoMethodError)

To avoid this error, I insert return nil if the feature is nil case.

Could you review this ?

@gongo gongo merged commit e58e3c0 into jnicklas:master Nov 21, 2016
@gongo
Copy link
Collaborator

gongo commented Nov 21, 2016

@KazuCocoa Thanks!!

@gongo
Copy link
Collaborator

gongo commented Nov 21, 2016

I've released 3.0.0 beta.5 🎉

gongo added a commit to gongo/turnip_formatter that referenced this pull request Nov 21, 2016
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

Successfully merging this pull request may close these issues.

2 participants