Skip to content
Snippets Groups Projects
Select Git revision
  • v15.0.0-ee
  • v14.10.3-ee
  • v15.0.0-rc44-ee
  • v15.0.0-rc43-ee
  • v15.0.0-rc42-ee
  • v14.10.2-ee
  • v14.8.6-ee
  • v14.9.4-ee
  • v14.10.1-ee
  • v14.10.0-ee
  • v14.10.0-rc42-ee
  • v14.9.3-ee
  • v14.6.7-ee
  • v14.7.7-ee
  • v14.8.5-ee
  • v14.9.2-ee
  • v14.7.6-ee
  • v14.9.1-ee
  • v14.9.0-ee
  • v14.9.0-rc42-ee
20 results
An error occurred while fetching branches. Retry the search.

environment_spec.rb

Forked from GitLab.org / GitLab
Source project has a limited visibility.
  • Peter Leitzen's avatar
    aacebd6e
    Configure RSpec to fail on potential false positives · aacebd6e
    Peter Leitzen authored
    Previously RSpec only warned in the following cases:
    
       expect(foo).to raise_error
    
       expect(foo).not_to raise_error(SomeSpecifcError)
    
    and suggested to correct potential false positives with:
    
       expect(foo).to raise_error(SomeSpecifcError)
    
       expect(foo).not_to raise_error
    
    This commit corrects all warnings and make RSpec fail instead of warn in
    such situations preventing future false positives.
    Configure RSpec to fail on potential false positives
    Peter Leitzen authored
    Previously RSpec only warned in the following cases:
    
       expect(foo).to raise_error
    
       expect(foo).not_to raise_error(SomeSpecifcError)
    
    and suggested to correct potential false positives with:
    
       expect(foo).to raise_error(SomeSpecifcError)
    
       expect(foo).not_to raise_error
    
    This commit corrects all warnings and make RSpec fail instead of warn in
    such situations preventing future false positives.