Skip to content

Instantly share code, notes, and snippets.

@Evanto
Created June 22, 2017 18:21
Show Gist options
  • Save Evanto/416889daa75a65abdb3910d92cdf2348 to your computer and use it in GitHub Desktop.
Save Evanto/416889daa75a65abdb3910d92cdf2348 to your computer and use it in GitHub Desktop.
ubuntu@rails-dev-box:~/www/qna$ rspec spec/acceptance/answer_question_spec.rb
F..
Failures:
1) User answers a question
In order to answer a question
I want to be able to fill the answer form on a page of a question
Authenticated user answers a question
Failure/Error: visit new_user_session_path # юзер идет на страницу логина
Net::ReadTimeout:
Net::ReadTimeout
# /var/lib/gems/2.4.0/gems/selenium-webdriver-3.4.3/lib/selenium/webdriver/remote/http/default.rb:124:in `response_for'
# /var/lib/gems/2.4.0/gems/selenium-webdriver-3.4.3/lib/selenium/webdriver/remote/http/default.rb:78:in `request'
# /var/lib/gems/2.4.0/gems/selenium-webdriver-3.4.3/lib/selenium/webdriver/remote/http/common.rb:61:in `call'
# /var/lib/gems/2.4.0/gems/selenium-webdriver-3.4.3/lib/selenium/webdriver/remote/bridge.rb:170:in `execute'
# /var/lib/gems/2.4.0/gems/selenium-webdriver-3.4.3/lib/selenium/webdriver/remote/bridge.rb:103:in `create_session'
# /var/lib/gems/2.4.0/gems/selenium-webdriver-3.4.3/lib/selenium/webdriver/firefox/marionette/driver.rb:56:in `initialize'
# /var/lib/gems/2.4.0/gems/selenium-webdriver-3.4.3/lib/selenium/webdriver/firefox/driver.rb:33:in `new'
# /var/lib/gems/2.4.0/gems/selenium-webdriver-3.4.3/lib/selenium/webdriver/firefox/driver.rb:33:in `new'
# /var/lib/gems/2.4.0/gems/selenium-webdriver-3.4.3/lib/selenium/webdriver/common/driver.rb:54:in `for'
# /var/lib/gems/2.4.0/gems/selenium-webdriver-3.4.3/lib/selenium/webdriver.rb:86:in `for'
# /var/lib/gems/2.4.0/gems/capybara-2.14.0/lib/capybara/selenium/driver.rb:22:in `browser'
# /var/lib/gems/2.4.0/gems/capybara-2.14.0/lib/capybara/selenium/driver.rb:62:in `visit'
# /var/lib/gems/2.4.0/gems/capybara-2.14.0/lib/capybara/session.rb:269:in `visit'
# /var/lib/gems/2.4.0/gems/capybara-2.14.0/lib/capybara/dsl.rb:50:in `block (2 levels) in <module:DSL>'
# ./spec/support/acceptance-helper.rb:3:in `sign_in'
# ./spec/acceptance/answer_question_spec.rb:12:in `block (2 levels) in <top (required)>'
Finished in 1 minute 1.59 seconds (files took 3.98 seconds to load)
3 examples, 1 failure
Failed examples:
rspec ./spec/acceptance/answer_question_spec.rb:11 # User answers a question
In order to answer a question
I want to be able to fill the answer form on a page of a question
Authenticated user answers a question
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment