Skip to content

Commit 2cb7ef6

Browse files
File sync from hanakai-rb/repo-sync
Updated files: - spec/support/rspec.rb
1 parent 2f2bc1d commit 2cb7ef6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec/support/rspec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,12 @@
1717
config.define_derived_metadata do |meta|
1818
meta[:aggregate_failures] = true
1919
end
20+
21+
if ENV['CI']
22+
# No focused specs should be committed. This ensures
23+
# builds fail when this happens.
24+
config.before(:each, :focus) do
25+
raise StandardError, "You've committed a focused spec!"
26+
end
27+
end
2028
end

0 commit comments

Comments
 (0)