Skip to content

Fix flaky spec on TestFakerFile#test_file_name #2867

@thdaraujo

Description

@thdaraujo

Describe the bug

There is a flaky spec on

===============================================================================
Failure: test_file_name(TestFakerFile):
  </^([a-z\-_.]+)(\\|\/)([a-z\-_]+)\.([a-z]+)$/> was expected to be =~
  <"whole-bless/cupiditate.mp3">.
/home/runner/work/faker/faker/test/faker/default/test_faker_file.rb:25:in `test_file_name'
     22:   end
     23: 
     24:   def test_file_name
  => 25:     assert_match %r{^([a-z\-_.]+)(\\|/)([a-z\-_]+)\.([a-z]+)$}, @tester
     26:       .file_name
     27:   end
     28: 
===============================================================================

Failed run

Maybe caused by the latest Rubocop version bump?
#2864

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions