You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rake generator:cleanup task (which is invoked by rake test:basic) does not remove the Formtastic views that rake generator:clearance_views adds to test/rails_root/app/views .
As a result, you can do this after cloning the Clearance repository:
- edit an error into app/views/sessions/new.html.erb (say, by changing "form_for" to "fform_for")
- rake test:basic and watch 9 of the tests fail
- rake test:features and watch 9 of the cucumber steps fail
- rake test:views and watch all the tests pass
- rake test:basic again ... and watch all the tests pass!
- rake test:features again ... and watch all the steps pass!
The problem here is that rake test:views has polluted the test/rails_root/app/views/{passwords,sessions,users} directories with generated .erb files . Then neither rake test:basic nor rake test:features removes these files before running their tests.
I think several things need to be done here:
rake generator:cleanup needs to remove the generated formtastic views
each of the four test tasks should depend on the generator:cleanup and generator:clearance tasks
rake test:basic should not depend on on generator:clearance_features
rake test:features should depend on generator:clearance_features
rake test:features_for_views should depend on both generator:clearance_features and generator:clearance_views
The text was updated successfully, but these errors were encountered:
The rake generator:cleanup task (which is invoked by rake test:basic) does not remove the Formtastic views that rake generator:clearance_views adds to test/rails_root/app/views .
As a result, you can do this after cloning the Clearance repository:
The problem here is that rake test:views has polluted the test/rails_root/app/views/{passwords,sessions,users} directories with generated .erb files . Then neither rake test:basic nor rake test:features removes these files before running their tests.
I think several things need to be done here:
The text was updated successfully, but these errors were encountered: