mdesantis
mdesantis

Reputation: 8517

Rspec - include other folders specs

I have a Rails project, in which I have a library with specs, lib/foo, which contains a spec folder:

Rails.root
  /lib
    /foo
      /lib
      /spec

When I run rspec in Rails root, I would like the foo specs to be ran too. How can I accomplish it?

Upvotes: 1

Views: 406

Answers (1)

Mikhail Nikalyukin
Mikhail Nikalyukin

Reputation: 11967

You could run it like that: rspec spec/ lib/foo/spec

Upvotes: 2

Related Questions