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

nil can't be coerced into Fixnum #6

Open
menge101 opened this issue Apr 28, 2016 · 3 comments
Open

nil can't be coerced into Fixnum #6

menge101 opened this issue Apr 28, 2016 · 3 comments

Comments

@menge101
Copy link

Following an unexpected exception in my test suite, I get the stack trace below. I believe this is caused by the unhandled exception I received; I do not believe it is the cause. But it illuminates that something isn't quite right with your monkey patch when an exception is thrown.

nil can't be coerced into Fixnum (TypeError)
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/cucumber_2x_step_patch.rb:46:in +' /Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/cucumber_2x_step_patch.rb:46:inblock in scenario_profiles'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/cucumber_2x_step_patch.rb:39:in each' /Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/cucumber_2x_step_patch.rb:39:inscenario_profiles'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/profile_data.rb:41:in feature_profiles' (haml):120:inblock in render'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/haml-4.0.7/lib/haml/engine.rb:129:in eval' /Users/nmenge/.rvm/gems/ruby-2.3.0/gems/haml-4.0.7/lib/haml/engine.rb:129:inrender'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/exporter.rb:27:in to_html' /Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/exporter.rb:15:inblock in export'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/exporter.rb:15:in open' /Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/exporter.rb:15:inexport'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/formatter.rb:12:in after_features' /Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/ignore_missing_messages.rb:10:inmethod_missing'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/legacy_api/adapter.rb:124:in after' /Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/legacy_api/adapter.rb:52:indone'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/fanout.rb:16:in block in method_missing' /Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/fanout.rb:15:ineach'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/fanout.rb:15:in method_missing' /Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/test/runner.rb:40:indone'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in done' /Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:indone'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in done' /Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:indone'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in done' /Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:indone'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/filters/quit.rb:17:in done' /Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/test/filters/locations_filter.rb:19:indone'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in done' /Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/test/filters/tag_filter.rb:18:indone'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/compiler.rb:23:in done' /Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/gherkin/parser.rb:39:indone'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core.rb:29:in parse' /Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core.rb:18:incompile'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/runtime.rb:68:in run!' /Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/cli/main.rb:32:inexecute!'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/bin/cucumber:8:in <top (required)>' /Users/nmenge/.rvm/gems/ruby-2.3.0/bin/cucumber:23:inload'
/Users/nmenge/.rvm/gems/ruby-2.3.0/bin/cucumber:23:in <main>' /Users/nmenge/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:ineval'
/Users/nmenge/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `

'
[nmenge@pitm0715092c1(rodan_record_cleaning) ~/projects/mechagodzilla]$ mvim rerun.txt
[nmenge@pitm0715092c1(rodan_record_cleaning) ~/projects/mechagodzilla]$
[nmenge@pitm0715092c1(rodan_record_cleaning) ~/projects/mechagodzilla]$
[nmenge@pitm0715092c1(rodan_record_cleaning) ~/projects/mechagodzilla]$ TEST_ENV=local BROWSER=chrome rake cucumber:rerun
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler.rb:289: warning: Insecure world writable dir /usr/local in PATH, mode 040777
/Users/nmenge/.rvm/rubies/ruby-2.3.0/bin/ruby -S bundle exec cucumber --profile rerun
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler.rb:289: warning: Insecure world writable dir /usr/local in PATH, mode 040777
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler.rb:289: warning: Insecure world writable dir /usr/local in PATH, mode 040777

@singram
Copy link
Owner

singram commented Apr 28, 2016

Hmmm if you look in the feature files there is a step which raises and
exception. Any thoughts on what the difference may be?

On Thu, Apr 28, 2016 at 2:44 PM, Nathan Menge [email protected]
wrote:

Following an unexpected exception in my test suite, I get the stack trace
below. I believe this is caused by the unhandled exception I received; I do
not believe it is the cause. But it illuminates that something isn't quite
right with your monkey patch when an exception is thrown.

nil can't be coerced into Fixnum (TypeError)
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/cucumber_2x_step_patch.rb:46:in
+'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/cucumber_2x_step_patch.rb:46:inblock
in scenario_profiles'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/cucumber_2x_step_patch.rb:39:in
each'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/cucumber_2x_step_patch.rb:39:in
scenario_profiles'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/profile_data.rb:41:in
feature_profiles'
(haml):120:inblock in render'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/haml-4.0.7/lib/haml/engine.rb:129:in
eval'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/haml-4.0.7/lib/haml/engine.rb:129:in
render'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/exporter.rb:27:in
to_html'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/exporter.rb:15:inblock
in export'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/exporter.rb:15:in
open'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/exporter.rb:15:in
export'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/formatter.rb:12:in
after_features'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/ignore_missing_messages.rb:10:in
method_missing'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/legacy_api/adapter.rb:124:in
after'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/legacy_api/adapter.rb:52:in
done'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/fanout.rb:16:in
block in method_missing'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/fanout.rb:15:in
each'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/fanout.rb:15:in
method_missing'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/test/runner.rb:40:in
done'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in
done'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in
done'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in
done'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/filters/quit.rb:17:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/test/filters/locations_filter.rb:19:in
done'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/test/filters/tag_filter.rb:18:in
done'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/compiler.rb:23:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/gherkin/parser.rb:39:in
done'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core.rb:29:in
parse'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core.rb:18:in
compile'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/runtime.rb:68:in
run!'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/cli/main.rb:32:in
execute!'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/bin/cucumber:8:in <top
(required)>'
/Users/nmenge/.rvm/gems/ruby-2.3.0/bin/cucumber:23:inload'
/Users/nmenge/.rvm/gems/ruby-2.3.0/bin/cucumber:23:in

'
/Users/nmenge/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:ineval'
/Users/nmenge/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `
'
[nmenge@pitm0715092c1(rodan_record_cleaning) ~/projects/mechagodzilla]$
mvim rerun.txt
[nmenge@pitm0715092c1(rodan_record_cleaning) ~/projects/mechagodzilla]$
[nmenge@pitm0715092c1(rodan_record_cleaning) ~/projects/mechagodzilla]$
[nmenge@pitm0715092c1(rodan_record_cleaning) ~/projects/mechagodzilla]$
TEST_ENV=local BROWSER=chrome rake cucumber:rerun
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler.rb:289:
warning: Insecure world writable dir /usr/local in PATH, mode 040777
/Users/nmenge/.rvm/rubies/ruby-2.3.0/bin/ruby -S bundle exec cucumber
--profile rerun
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler.rb:289:
warning: Insecure world writable dir /usr/local in PATH, mode 040777
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler.rb:289:
warning: Insecure world writable dir /usr/local in PATH, mode 040777


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#6

@menge101
Copy link
Author

The exception was occurring in an around hook outside of the actual
cucumber feature step. That may be what makes this situation unique.

On Thu, Apr 28, 2016 at 3:32 PM, Stuart Ingram [email protected]
wrote:

Hmmm if you look in the feature files there is a step which raises and
exception. Any thoughts on what the difference may be?

On Thu, Apr 28, 2016 at 2:44 PM, Nathan Menge [email protected]
wrote:

Following an unexpected exception in my test suite, I get the stack trace
below. I believe this is caused by the unhandled exception I received; I
do
not believe it is the cause. But it illuminates that something isn't
quite
right with your monkey patch when an exception is thrown.

nil can't be coerced into Fixnum (TypeError)

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/cucumber_2x_step_patch.rb:46:in
+'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/cucumber_2x_step_patch.rb:46:inblock
in scenario_profiles'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/cucumber_2x_step_patch.rb:39:in
each'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/cucumber_2x_step_patch.rb:39:in
scenario_profiles'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/profile_data.rb:41:in
feature_profiles'
(haml):120:inblock in render'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/haml-4.0.7/lib/haml/engine.rb:129:in
eval'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/haml-4.0.7/lib/haml/engine.rb:129:in
render'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/exporter.rb:27:in
to_html'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/exporter.rb:15:inblock
in export'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/exporter.rb:15:in
open'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/exporter.rb:15:in
export'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/formatter.rb:12:in
after_features'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/ignore_missing_messages.rb:10:in
method_missing'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/legacy_api/adapter.rb:124:in
after'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/legacy_api/adapter.rb:52:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/fanout.rb:16:in
block in method_missing'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/fanout.rb:15:in
each'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/fanout.rb:15:in
method_missing'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/test/runner.rb:40:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/filters/quit.rb:17:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/test/filters/locations_filter.rb:19:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/test/filters/tag_filter.rb:18:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/compiler.rb:23:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/gherkin/parser.rb:39:in
done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core.rb:29:in
parse'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core.rb:18:in
compile'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/runtime.rb:68:in
run!'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/cli/main.rb:32:in
execute!'
/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/bin/cucumber:8:in
<top
(required)>'
/Users/nmenge/.rvm/gems/ruby-2.3.0/bin/cucumber:23:inload'
/Users/nmenge/.rvm/gems/ruby-2.3.0/bin/cucumber:23:in

'
/Users/nmenge/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:ineval'
/Users/nmenge/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `
'
[nmenge@pitm0715092c1(rodan_record_cleaning) ~/projects/mechagodzilla]$
mvim rerun.txt
[nmenge@pitm0715092c1(rodan_record_cleaning) ~/projects/mechagodzilla]$
[nmenge@pitm0715092c1(rodan_record_cleaning) ~/projects/mechagodzilla]$
[nmenge@pitm0715092c1(rodan_record_cleaning) ~/projects/mechagodzilla]$
TEST_ENV=local BROWSER=chrome rake cucumber:rerun

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler.rb:289:
warning: Insecure world writable dir /usr/local in PATH, mode 040777
/Users/nmenge/.rvm/rubies/ruby-2.3.0/bin/ruby -S bundle exec cucumber
--profile rerun

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler.rb:289:
warning: Insecure world writable dir /usr/local in PATH, mode 040777

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler.rb:289:
warning: Insecure world writable dir /usr/local in PATH, mode 040777


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#6


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#6 (comment)

@singram
Copy link
Owner

singram commented Apr 28, 2016

Ahhh yeah that would make a lot of sense since it's technically a exception
in the framework and not a step. Will take a look if I can some free time.

On Thu, Apr 28, 2016 at 3:53 PM, Nathan Menge [email protected]
wrote:

The exception was occurring in an around hook outside of the actual
cucumber feature step. That may be what makes this situation unique.

On Thu, Apr 28, 2016 at 3:32 PM, Stuart Ingram [email protected]
wrote:

Hmmm if you look in the feature files there is a step which raises and
exception. Any thoughts on what the difference may be?

On Thu, Apr 28, 2016 at 2:44 PM, Nathan Menge [email protected]
wrote:

Following an unexpected exception in my test suite, I get the stack
trace
below. I believe this is caused by the unhandled exception I received;
I
do
not believe it is the cause. But it illuminates that something isn't
quite
right with your monkey patch when an exception is thrown.

nil can't be coerced into Fixnum (TypeError)

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/cucumber_2x_step_patch.rb:46:in

+'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/cucumber_2x_step_patch.rb:46:inblock

in scenario_profiles'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/cucumber_2x_step_patch.rb:39:in

each'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/cucumber_2x_step_patch.rb:39:in

scenario_profiles'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/profile_data.rb:41:in

feature_profiles'
(haml):120:inblock in render'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/haml-4.0.7/lib/haml/engine.rb:129:in

eval'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/haml-4.0.7/lib/haml/engine.rb:129:in

render'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/exporter.rb:27:in

to_html'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/exporter.rb:15:inblock

in export'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/exporter.rb:15:in

open'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/exporter.rb:15:in

export'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber_characteristics-0.0.5/lib/cucumber_characteristics/formatter.rb:12:in

after_features'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/ignore_missing_messages.rb:10:in

method_missing'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/legacy_api/adapter.rb:124:in

after'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/legacy_api/adapter.rb:52:in

done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/fanout.rb:16:in

block in method_missing'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/fanout.rb:15:in

each'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/formatter/fanout.rb:15:in

method_missing'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/test/runner.rb:40:in

done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in

done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in

done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in

done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in

done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in

done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in

done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/filters/quit.rb:17:in

done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/test/filters/locations_filter.rb:19:in

done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/filter.rb:61:in

done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/test/filters/tag_filter.rb:18:in

done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/compiler.rb:23:in

done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core/gherkin/parser.rb:39:in

done'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core.rb:29:in

parse'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-core-1.4.0/lib/cucumber/core.rb:18:in

compile'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/runtime.rb:68:in

run!'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/lib/cucumber/cli/main.rb:32:in

execute!'

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/cucumber-2.3.3/bin/cucumber:8:in
<top
(required)>'
/Users/nmenge/.rvm/gems/ruby-2.3.0/bin/cucumber:23:inload'
/Users/nmenge/.rvm/gems/ruby-2.3.0/bin/cucumber:23:in

'
/Users/nmenge/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:ineval'
/Users/nmenge/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `
'
[nmenge@pitm0715092c1(rodan_record_cleaning)
~/projects/mechagodzilla]$
mvim rerun.txt
[nmenge@pitm0715092c1(rodan_record_cleaning)
~/projects/mechagodzilla]$
[nmenge@pitm0715092c1(rodan_record_cleaning)
~/projects/mechagodzilla]$
[nmenge@pitm0715092c1(rodan_record_cleaning)
~/projects/mechagodzilla]$
TEST_ENV=local BROWSER=chrome rake cucumber:rerun

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler.rb:289:

warning: Insecure world writable dir /usr/local in PATH, mode 040777
/Users/nmenge/.rvm/rubies/ruby-2.3.0/bin/ruby -S bundle exec cucumber
--profile rerun

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler.rb:289:

warning: Insecure world writable dir /usr/local in PATH, mode 040777

/Users/nmenge/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler.rb:289:

warning: Insecure world writable dir /usr/local in PATH, mode 040777


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#6


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
<
#6 (comment)


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#6 (comment)

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

2 participants