An integration test is when you need to test the interaction of multiple systems or parts of your application.
An integration test may seem similar to an acceptance test. The main difference is that an acceptance test is from the perspective of the end-user, while an integration test is from the perspective of the developer.
Integration tests can be found in the directory
You can run all integration tests with:
bundle exec rspec spec/requests
To run an individual file you can use, for example:
bundle exec rspec spec/requests/stories_show_spec.rb
To run a specific test case you can use for example:
bundle exec rspec spec/requests/stories_show_spec.rb:10
10 is the line number of the test case that you want to execute.