thoughtbot / capybara-webkit

A Capybara driver for headless WebKit to test JavaScript web apps
https://thoughtbot.com/open-source
MIT License
1.97k stars 428 forks source link

Something wrong with creating fixtures #991

Closed npolevara closed 6 years ago

npolevara commented 7 years ago

When i statrt the tests, in console raise the fixture title created by factory_girl, it raised when the feature test run 'visit resource_path(pixel)', four different tests puts in console four fixture title when visit resource: :~/code/ruby/top$ rspec spec/feature/ "Pixel title" | ETA: ??:??:?? "Pixel title" ===> | ETA: 00:00:57 "Pixel title"================== 50 =========================> | ETA: 00:00:08 "Pixel title"======================= 60 ==============================> | ETA: 00:00:05

this happend in capybara-webkit-1.12.0/lib/capybara/webkit/browser.rb:205 def command(name, *args) @connection.puts name <------- here @connection.puts args.size args.each do |arg| @connection.puts arg.to_s.bytesize @connection.print arg.to_s end

twalpole commented 6 years ago

Closing due to not having any idea what is being asked or reported here