Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Feature specs not being executed #972

Closed
conradwt opened this issue Jul 10, 2013 · 1 comment
Closed

Feature specs not being executed #972

conradwt opened this issue Jul 10, 2013 · 1 comment

Comments

@conradwt
Copy link

Feature specs not being properly ran:

$ rspec spec/features
No examples found.


Finished in 0.00051 seconds
0 examples, 0 failures

Is there any additional setup for the features directory to recognized by RSpec (i,e, spec_helper.rb)?

@JonRowe
Copy link
Member

JonRowe commented Jul 10, 2013

By default we expect files to match spec/**/*_spec.rb, my guess is that your files inside spec/features do not end with _spec. You can override this by using --pattern "spec/**/*.rb" on the command line, in .rspec or

RSpec.configure do |config|
  config.pattern = 'spec/**/*.rb'
end

@JonRowe JonRowe closed this as completed Jul 10, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants