Re: [rspec-users] Writing specs pointed out I need to refactor my admin area

2009-05-24 Thread Andrew Premdas
2009/5/24 Fernando Perez : > So I tried to implement Django's AutoAdmin, but actually it quite > quickly blew in my face. Although the views all look similar, there > almost as many little differences as they are models and that's painful > to abstract. So I prefer to write my views for each model.

Re: [rspec-users] Writing specs pointed out I need to refactor my admin area

2009-05-24 Thread Fernando Perez
So I tried to implement Django's AutoAdmin, but actually it quite quickly blew in my face. Although the views all look similar, there almost as many little differences as they are models and that's painful to abstract. So I prefer to write my views for each model. Now I have another problem, so

[rspec-users] Writing specs pointed out I need to refactor my admin area

2009-05-23 Thread Fernando Perez
Hi, My app now nearly has 100% coverage and when refactoring the code, potential bugs are immediately pointed out. So that's a big win. Moreover when writing specs for my controllers and views of the admin zone, I quickly realized that I was often copying/pasting code and tests. That annoyed me.