Skip to content

Commit 23b8016

Browse files
committed
System specs: add note on transaction
1 parent 1a81173 commit 23b8016

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

features/system_specs/system_specs.feature

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Feature: System spec
22

33
System specs are RSpec's wrapper around Rails' own
4-
[system tests](http://guides.rubyonrails.org/testing.html#system-testing).
4+
[system tests](https://guides.rubyonrails.org/testing.html#system-testing).
55

66
System tests allow you to test user interactions with your application,
77
running tests in either a real or a headless browser. System tests use
@@ -15,6 +15,8 @@ Feature: System spec
1515
uses the default `driven_by(:selenium)` from Rails. If you want to override
1616
this behaviour you can call `driven_by` manually in a test.
1717

18+
System specs run in a transaction. So unlike feature specs with
19+
javascript, you do not need [DatabaseCleaner](https://github.com/DatabaseCleaner/database_cleaner).
1820

1921
@system_test
2022
Scenario: System specs

0 commit comments

Comments
 (0)