Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Help file erroneously says --rspec unnecessary if /spec exists (Rails 3?) #50

Closed
likethesky opened this issue Oct 5, 2010 · 2 comments
Labels

Comments

@likethesky
Copy link

Your help file from Rails 3 (3.0.0 final; ruby 1.9.2-p0/head) says:

"Tests or specs are also generated depending
on if you have a "spec" directory or not."

However I had a spec/ directory and when I executed the following:
rails g nifty:scaffold Tag

I got a test/ directory created.

When I did:
(first: rm -rf test, then:)
rails g nifty:scaffold Tag --rspec

I instead got a spec/ dir... with the correct spec file generated.

@ryanb
Copy link
Owner

ryanb commented Oct 13, 2010

Sounds like a bug, I'll look into fixing it. Thanks for reporting.

@ryanb
Copy link
Owner

ryanb commented Oct 15, 2010

automatically generate rspec tests when spec directory is used - closed by 7a512f6

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants