Skip to content

Instantly share code, notes, and snippets.

@Evanto
Last active June 22, 2017 16:28
Show Gist options
  • Save Evanto/c1abc774b5ddbd1dd7f74dafce10b3a2 to your computer and use it in GitHub Desktop.
Save Evanto/c1abc774b5ddbd1dd7f74dafce10b3a2 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 # юзер идет на страницу логина
Selenium::WebDriver::Error::WebDriverError:
Unable to find Mozilla geckodriver. Please download the server from https://github.com/mozilla/geckodriver/releases and place it somewhere on your PATH. More info at https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver.
# /var/lib/gems/2.4.0/gems/selenium-webdriver-3.4.3/lib/selenium/webdriver/common/service.rb:59:in `binary_path'
# /var/lib/gems/2.4.0/gems/selenium-webdriver-3.4.3/lib/selenium/webdriver/common/service.rb:49:in `initialize'
# /var/lib/gems/2.4.0/gems/selenium-webdriver-3.4.3/lib/selenium/webdriver/firefox/marionette/driver.rb:47:in `new'
# /var/lib/gems/2.4.0/gems/selenium-webdriver-3.4.3/lib/selenium/webdriver/firefox/marionette/driver.rb:47: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.49 seconds (files took 4.1 seconds to load)
3 examples, 1 failure
ubuntu@rails-dev-box:~/.bundle/cache/git/shoulda-matchers-e04e9ade87805b3667f97d976fd84556605e66f8$ rspec spec/acceptance/answer_question_spec.rb
An error occurred while loading ./spec/acceptance/answer_question_spec.rb.
Failure/Error: load file
LoadError:
cannot load such file -- /home/ubuntu/.bundle/cache/git/shoulda-matchers-e04e9ade87805b3667f97d976fd84556605e66f8/spec/acceptance/answer_question_spec.rb
# /var/lib/gems/2.4.0/gems/rspec-core-3.6.0/lib/rspec/core/configuration.rb:1922:in `load'
# /var/lib/gems/2.4.0/gems/rspec-core-3.6.0/lib/rspec/core/configuration.rb:1922:in `load_spec_file_handling_errors'
# /var/lib/gems/2.4.0/gems/rspec-core-3.6.0/lib/rspec/core/configuration.rb:1494:in `block in load_spec_files'
# /var/lib/gems/2.4.0/gems/rspec-core-3.6.0/lib/rspec/core/configuration.rb:1492:in `each'
# /var/lib/gems/2.4.0/gems/rspec-core-3.6.0/lib/rspec/core/configuration.rb:1492:in `load_spec_files'
# /var/lib/gems/2.4.0/gems/rspec-core-3.6.0/lib/rspec/core/runner.rb:100:in `setup'
# /var/lib/gems/2.4.0/gems/rspec-core-3.6.0/lib/rspec/core/runner.rb:86:in `run'
# /var/lib/gems/2.4.0/gems/rspec-core-3.6.0/lib/rspec/core/runner.rb:71:in `run'
# /var/lib/gems/2.4.0/gems/rspec-core-3.6.0/lib/rspec/core/runner.rb:45:in `invoke'
# /var/lib/gems/2.4.0/gems/rspec-core-3.6.0/exe/rspec:4:in `<top (required)>'
# /usr/local/bin/rspec:23:in `load'
# /usr/local/bin/rspec:23:in `<main>'
#
# Showing full backtrace because every line was filtered out.
# See docs for RSpec::Configuration#backtrace_exclusion_patterns and
# RSpec::Configuration#backtrace_inclusion_patterns for more information.
No examples found.
Finished in 0.00031 seconds (files took 0.1317 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment