Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggested way to test against Chanko 2.0? #32

Closed
dlackty opened this issue Apr 27, 2013 · 2 comments
Closed

Suggested way to test against Chanko 2.0? #32

dlackty opened this issue Apr 27, 2013 · 2 comments

Comments

@dlackty
Copy link

dlackty commented Apr 27, 2013

Recently I started to play and adopt Chanko into our project. It works nicely and really changes the way we work.

However, I found that in Chanko 2.0, the unit generator no longer creates spec files for units, and since there's no need to run install generator in 2.0, the app/units folder is also not symlinked to /spec.

What is the suggested way to test against Chanko 2.0?

@r7kamura
Copy link
Contributor

r7kamura commented May 9, 2013

For simplicity, I removed the generator for rspec from v2.0.0.
But it seems to be necessary yet, so I'll add generator in the next version (v2.0.2) or later.
Thank you for your question 👍

@r7kamura
Copy link
Contributor

r7kamura commented May 9, 2013

I personally recommend you to put a symlink from spec/units to app/units, and then put spec files in each unit's directory (e.g. app/units/foo_unit/spec/controllers/bar_controller_spec.rb)

$ cd spec
$ ln -s ../app/units

and run specs:

$ rspec spec/units

@r7kamura r7kamura closed this as completed Jun 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants