← Back to Upcase

BDD in Upcase


(Tomislav) #1

Hi,

I’ve got an question concerning the BDD examples in the trails section.
All the tests that are covered there are just acceptance tests (feature tests).

There are no examples of unit or integration tests?

Tnx,
Tom


(Joshua Clayton) #2

Howdy @MrKindle85! We start out with acceptance tests, but later on in the course, specifically around marking todos complete and incomplete, we touch on unit tests and how to structure them.

From an integration test perspective, acceptance tests are a form of integration test, since they’re interacting with most/all layers of the application. We don’t often test at the controller level, and this workshop doesn’t get into writing acceptance tests for APIs with RSpec’s request specs.