Skip to content

Commit

Permalink
Add timeout around specs
Browse files Browse the repository at this point in the history
  • Loading branch information
kigster committed Sep 23, 2024
1 parent 60dbf2e commit daafabd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ jobs:
bin/rails db:test:prepare
- name: "Run Rspec"
run: bundle exec rspec
run: bundle exec rspec --format documentation -p 0 --backtrace
6 changes: 6 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@
config.expect_with(:rspec) do |c|
c.syntax = %i[should expect]
end

config.around do |example|
Timeout.timeout(5) do
example.run
end
end
end

0 comments on commit daafabd

Please sign in to comment.