-
Couldn't load subscription status.
- Fork 775
Backend Automated Testing
Julia Nguyen edited this page Dec 9, 2024
·
9 revisions
rspec
When using Docker, run:
$ docker-compose -f docker-compose.test.yml build
$ docker-compose -f docker-compose.test.yml run app bundle exec rspec
rspec ./spec/services/profile_picture_spec.rb
rspec ./spec/services/profile_picture_spec.rb:16
Add the :focus attribute to any of it, context, describe, or test to only run the tests in that context.
it 'renders the index template', :focus do
get strategies_path
expect(response).to render_template('index')
end
Running plain old rspec will now ONLY run this test
This is enabled by config.filter_run_when_matching :focus in spec/spec_helper.rb