Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

279
Views
Rspec automatically run file which are having _spec suffix but if I want to other file also which does not have _spec then what should i do?

In rails I need that when I run rspec . it will consider all file which are inside the spec directory. As of now it is considering only those file which is having _spec suffix. How can I do it , any idea ?

Thanks

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

to include other file name suffixes, you can pass a param when running rspec as shown in the docs here, like this, to include files ending in _spec.rb and _test.rb.

rspec -P "**/*_test.rb,**/*_spec.rb"

You can also include this param in a .rspec file in the root of your project that passes this pattern in automatically, like this in the .rspec file:

--pattern "**/*_test.rb,**/*_spec.rb"
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!