-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Get the following error
power_assert: [BUG] Failed to trace: NoMethodError: undefined method `start_with?' for nil:NilClass
It was validated as much as possible in a small code.
But I do not know the cause.
Capybara be due to? Or there is cause to power_assert?
Even now the same result by testing it with github of master.
Steps to reproduce
RUBY_VERSION # => "2.6.1"
require 'bundler/inline'
gemfile(true) do
gem 'capybara', '3.29.0'
gem 'selenium-webdriver', '3.142.4'
gem 'test-unit', '3.3.3'
gem 'power_assert', '1.1.5'
end
require 'capybara/dsl'
Capybara.current_driver = :selenium_chrome
class TestFoo < Test::Unit::TestCase
test 'case1' do
Capybara.visit('http://httpbin.org/forms/post')
assert { Capybara.first('input').value == '' }
end
endExpected behavior
ruby test.rb
Loaded suite test
Started
.
Finished in 2.373814 seconds.
-------------------------------------------------------------------------------
1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
-------------------------------------------------------------------------------
0.42 tests/s, 0.42 assertions/sActual behavior
ruby test.rb
Loaded suite test
Started
power_assert: [BUG] Failed to trace: NoMethodError: undefined method `start_with?' for nil:NilClass
.
Finished in 2.373814 seconds.
-------------------------------------------------------------------------------
1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
-------------------------------------------------------------------------------
0.42 tests/s, 0.42 assertions/sSystem configuration
Ruby version: 2.6.1p33 (2019-01-30 revision 66950) [x86_64-darwin17]
Metadata
Metadata
Assignees
Labels
No labels