-
Notifications
You must be signed in to change notification settings - Fork 168
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
Screenshots not being auto generated with Ruby-Rspec (no rails) #232
Comments
I have this set:
|
@ndp tried that too. |
@zwarburg I ran into this as well and noticed that it seems to only catch |
@zwarburg if you can provide me with a working example i.e. one that I can drop in the Gem, I can see if I can find a more permanent fix or perhaps update the docs to indicate what people should do. |
I believe this is working as expected. If you want a different behavior, you can tag a describe 'spec', type: :feature do
before(:each) do
@my_page = login_and_open_my_page
end
it "fails" do
expect(5).to eq(6)
end
end For more information, here's the documentation: https://github.com/teamcapybara/capybara#using-capybara-with-rspec |
I am using Ruby Rspec to test a webapp that doesn't use rails, thus I don't have a
rails_helper.rb
, just aspec_helper.rb
. I can manually trigger a screenshot but I can't figure out how to trigger the screenshots on a failure.spec_helper.rb:
my_spec.rb
The text was updated successfully, but these errors were encountered: