This website requires JavaScript.
Explore
Help
Sign in
Sutty
/
trabajo-afectivo
Watch
5
Star
0
Fork
You've already forked trabajo-afectivo
0
Code
Issues
Pull requests
Projects
Releases
Wiki
Activity
c8ab4275d6
trabajo-afectivo
/
spec
/
support
/
reset_system_before_suite.rb
6 lines
106 B
Ruby
Raw
Normal View
History
Unescape
Escape
Added RSpec support file to initialize database into clean state before running suite.
2018-09-28 15:05:39 +00:00
RSpec
.
configure
do
|
config
|
config
.
before
(
:suite
)
do
Added db_strategy (:truncaction) meta helper to switch to DB cleanup via truncation (from transaction) for single examples. We choose to stick to Rails/RSpec transactional cleanup over DatabaseCleaner transaction strategy because of performance reasons. Rails default performs between 30 and 50% better.
2018-10-02 14:25:04 +00:00
Rake
::
Task
[
'zammad:db:reset'
]
.
invoke
Added RSpec support file to initialize database into clean state before running suite.
2018-09-28 15:05:39 +00:00
end
end
Reference in a new issue
Copy permalink