Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot load such file -- capybara-screenshot-diff (LoadError) #41

Closed
vosmakov opened this issue Jan 24, 2022 · 1 comment
Closed

cannot load such file -- capybara-screenshot-diff (LoadError) #41

vosmakov opened this issue Jan 24, 2022 · 1 comment

Comments

@vosmakov
Copy link

vosmakov commented Jan 24, 2022

gem install capybara-screenshot-diff
Fetching capybara-screenshot-diff-1.5.4.gem
Successfully installed capybara-screenshot-diff-1.5.4
Parsing documentation for capybara-screenshot-diff-1.5.4
Installing ri documentation for capybara-screenshot-diff-1.5.4
Done installing documentation for capybara-screenshot-diff after 0 seconds
1 gem installed
gem which capybara-screen-diff
ERROR:  Can't find Ruby library file or shared library capybara-screen-diff
bundle exec cucumber test.feature
cannot load such file -- capybara-screenshot-diff (LoadError)
@vosmakov
Copy link
Author

vosmakov commented Feb 1, 2022

Answer is:
you need to write
require 'capybara/screenshot/diff'
not
require 'capybara-screenshot-diff'

And
include Capybara::Screenshot::Diff::TestMethods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant