Hello. Long time reader, first time postr. I've been out of the RoR game for 3 years and am back in full on. I'm upgraded my stack to the latest and greatest.
- Rails 6.0.1.3 - Ruby 2.7.1p83 - devise (4.7.2) - rspec-rails (4.0.1) - factory_bot_rails (6.0.0) I've been using the following tutorial to get me back up to speed. http://apionrails.icalialabs.com/book/chapter_five It's an amazing tutorial, but unfortunately it is very outdated, but I've been able to trouble shoot most of the issues. I've been working on the Controller spec tests, but from reading the benefits of rspec-rails, rails, etc, I thought it prudent to bite the bullet and start using Request Specs. (based on this <http://rspec.info/blog/2016/07/rspec-3-5-has-been-released/> link) >From there I found out I should be using Feature Specs, and now finally system specs. So I'm supposed to write system specs, but that requires Capybara, and further reading states: By default, system tests are run with the Selenium driver, using the Chrome > browser, and a screen size of 1400x1400. The next section explains how to > change the default settings. > The Capybara gem is automatically required, and Rails includes it in > generated application Gemfiles. Configure a webserver (e.g.Capybara.server > = :webrick) before attempting to use system specs. I don't need a browser, or the over head. What I'm hoping is someone can tell me what's the proper Spec to use to test the API only project and if I could see an example of proper type of spec that would test the Users_Controller (but NOT with 'type: :controller' as it should be 'type: :request' at a minimum, 'type: :feature' most likely and maybe even 'type: :system' if there's a valid reason to use Cabybara on a API only app. Thanks in advance for you time and effort. My apologies on my post, I'll have to learn how to use the formatting better to make it more readable. G -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/20ce1df7-bfa6-4c48-8a39-d05ab7a5c1bfo%40googlegroups.com.
