Thanks, Jon and Phil. That clarifies things greatly. System Specs it is!

> On Dec 3, 2020, at 5:47 AM, Phil Pirozhkov <pirjs...@gmail.com> wrote:
> 
> To add to what Jon said, there's this in the README, which
> unfortunately didn't make it to the documentation on Relish
> https://github.com/rspec/rspec-rails/#system-specs-feature-specs-request-specswhats-the-difference
> 
> On Thu, Dec 3, 2020 at 4:30 PM Jon Rowe <m...@jonrowe.co.uk> wrote:
>> 
>> Hi Jack
>> 
>> I can explain this a bit. RSpec itself has no inbuilt support for browser 
>> testing at all.
>> 
>> Feature specs are a configuration of Capybara on top of RSpec that is part 
>> of `rspec-rails` a “convention other configuration” from when that was the 
>> recommended way to go with testing full stack setups within Rails.
>> 
>> System specs are Rails own replacement for this previous “convention”.
>> 
>> If you are using system specs I would probably replace feature specs with 
>> them.
>> 
>> Hope that helps!
>> Jon
>> ----------------
>> m...@jonrowe.co.uk
>> https://jonrowe.co.uk
>> 
>> On 3 December 2020 at 00:55, Jack Royal-Gordon wrote:
>> 
>> I am still wondering why the decision was made not to add this RSpec 
>> functionality to feature specs — I think that there is no other difference 
>> between feature specs and system specs, although looking at the code for 
>> SystemExampleGroup vs. FeatureExampleGroup there seems quite a significant 
>> difference. Perhaps it’s because it’s driving Rails’ 
>> ActionDispatch::Integration instead of being RSpec-only.
>> 
>> I guess the difference is that your approach is independent of RSpec, 
>> whereas mine uses RSpec. I could not get your approach to fire up headless 
>> Chrome (although I didn’t try your exact code, just code that should have 
>> the same effect (some options are different, but “headless” is still there.
>> 
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "rspec" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to rspec+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/rspec/dejalu-217-5bc1a821-9fb1-489c-9633-136b1157c4dc%40jonrowe.co.uk.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "rspec" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to rspec+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rspec/CAAk5Ok9pZF%2B-wzdbaQbMuW2fsJ2RUri603as9v%3DSt7iDSctAWA%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rspec+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/EB03F56D-CAFE-4FCB-A5D0-1043ACF971F9%40pobox.com.

Reply via email to