bernat/best_in_place — Issue #87: spec failures
Author: Flameeyes
Created: 2012-01-16 15:50:49+00:00
State: open

I'm trying to package best_in_place gem as part of Gentoo and I'm hitting this. Can you provide me some help on how to find the issue? Thanks.

/usr/bin/ruby18 -S bundle exec rspec ./spec/integration/text_area_spec.rb ./spec/integration/js_spec.rb ./spec/integration/double_init_spec.rb ./spec/helpers/best_in_place_spec.rb
...................Catched error: Unable to find css "#best_in_place_user_980191058_address input". 2 more attempts.
Catched error: Unable to find css "#best_in_place_user_980191058_address input". 1 more attempts.
Catched error: Unable to find css "#best_in_place_user_980191058_address input". 0 more attempts.
F....Catched error: Unable to find css "#best_in_place_user_980191063_money input". 2 more attempts.
Catched error: Unable to find css "#best_in_place_user_980191063_money input". 1 more attempts.
Catched error: Unable to find css "#best_in_place_user_980191063_money input". 0 more attempts.
F...........................................

Failures:

1) JS behaviour display_as should display the updated content after editing the field two consecutive times
Failure/Error: text = page.find("##{id} input").value
Capybara::ElementNotFound:
Unable to find css "#best_in_place_user_980191058_address input"
# (eval):2:in `send'
# (eval):2:in `find'
# ./spec/integration/js_spec.rb:295
# ./spec/support/retry_on_timeout.rb:2:in `call'
# ./spec/support/retry_on_timeout.rb:2:in `retry_on_timeout'
# ./spec/support/retry_on_timeout.rb:6:in `retry_on_timeout'
# ./spec/integration/js_spec.rb:285

2) JS behaviour display_with should display the updated content after editing the field two consecutive times
Failure/Error: text = page.find("##{id} input").value
Capybara::ElementNotFound:
Unable to find css "#best_in_place_user_980191063_money input"
# (eval):2:in `send'
# (eval):2:in `find'
# ./spec/integration/js_spec.rb:363
# ./spec/support/retry_on_timeout.rb:2:in `call'
# ./spec/support/retry_on_timeout.rb:2:in `retry_on_timeout'
# ./spec/support/retry_on_timeout.rb:6:in `retry_on_timeout'
# ./spec/integration/js_spec.rb:353

Finished in 73.4 seconds
68 examples, 2 failures

Failed examples:

rspec ./spec/integration/js_spec.rb:283 # JS behaviour display_as should display the updated content after editing the field two consecutive times
rspec ./spec/integration/js_spec.rb:350 # JS behaviour display_with should display the updated content after editing the field two consecutive times
rake aborted!
ruby -S bundle exec rspec ./spec/integration/text_area_spec.rb ./spec/integration/js_spec.rb ./spec/integration/double_init_spec.rb ./spec/helpers/best_in_place_spec.rb failed

Tasks: TOP => spec
(See full trace by running task with --trace)