-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Milestone
Description
JRuby version 9.2.0.0. Using Capybara 3.2.1 and rspec 3.7.0. The following code:
require_relative './spec_helper'
RSpec.feature 'basic HTTP authentication', driver: :rack_test do
scenario 'can be accessed with basic HTTP authentication' do
end
endBlows up with the following:
NoMethodError: undefined method `on_kwrest_param' for #<Ripper::SexpBuilderPP:0x6935b72f>
parse at org/jruby/ext/ripper/RubyRipper.java:343
sexp at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/ripper/sexp.rb:33
ast at /home/boris/project/build/tmp/jrubyExec/gems/rspec-support-3.7.1/lib/rspec/support/source.rb:45
nodes_by_line_number at /home/boris/project/build/tmp/jrubyExec/gems/rspec-support-3.7.1/lib/rspec/support/source.rb:61
location_nodes_at_beginning_line at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/formatters/snippet_extractor.rb:118
expression_node at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/formatters/snippet_extractor.rb:96
line_range_of_location_nodes_in_expression at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/formatters/snippet_extractor.rb:88
line_range_of_expression at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/formatters/snippet_extractor.rb:57
expression_lines at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/formatters/snippet_extractor.rb:42
extract_expression_lines_at at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/formatters/snippet_extractor.rb:31
read_failed_lines at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/formatters/exception_presenter.rb:218
failure_slash_error_lines at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/formatters/exception_presenter.rb:163
block in failure_lines at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/formatters/exception_presenter.rb:150
tap at org/jruby/RubyKernel.java:1876
failure_lines at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/formatters/exception_presenter.rb:149
colorized_message_lines at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/formatters/exception_presenter.rb:34
formatted_message_and_backtrace at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/formatters/exception_presenter.rb:240
fully_formatted_lines at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/formatters/exception_presenter.rb:86
block in sub_failure_list_formatter at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/formatters/exception_presenter.rb:350
each at org/jruby/RubyArray.java:1801
each_with_index at org/jruby/RubyEnumerable.java:1180
each at org/jruby/RubyEnumerator.java:326
flat_map at org/jruby/RubyEnumerable.java:881
flat_map at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/flat_map.rb:7
block in sub_failure_list_formatter at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/formatters/exception_presenter.rb:339
fully_formatted_lines at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/formatters/exception_presenter.rb:87
fully_formatted at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/formatters/exception_presenter.rb:78
fully_formatted at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/notifications.rb:200
block in fully_formatted_failed_examples at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/notifications.rb:114
each at org/jruby/RubyArray.java:1801
each_with_index at org/jruby/RubyEnumerable.java:1180
fully_formatted_failed_examples at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/notifications.rb:113
dump_failures at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/formatters/base_text_formatter.rb:32
block in notify at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/reporter.rb:206
each at org/jruby/RubyArray.java:1801
notify at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/reporter.rb:205
block in finish at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/reporter.rb:175
close_after at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/reporter.rb:191
finish at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/reporter.rb:171
report at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/reporter.rb:81
run_specs at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:112
run at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:87
run at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:71
invoke at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:45
<main> at /home/boris/project/build/tmp/jrubyExec/gems/rspec-core-3.7.1/exe/rspec:4
load at org/jruby/RubyKernel.java:994
<main> at /home/boris/project/build/tmp/jrubyExec/bin/rspec:23
If I remove the , driver: :rack_test argument, it works fine.
I'm not sure whether I'm doing something wrong, whether this is a bug in JRuby or anything at all, just thought to report here. :) Please tell me if you need more information.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels