ultima_semana with 7.days.ago
Constantize models, motherfucker!
Dropping magic numbers: let's give them a name -> cuantas_semanas_quiero_ver
the main app should say to the engine what's the estado_id for usuario "sin activar"
Removing unneeded overengineering
7.days are 1.week
Reverting "the main app should say to the engine what's the estado_id for usuario "sin activar""
extracting to explaining vars and apply our naming conventions
Added test coverage to the Usuario's scopes
removing "all wired" dumb test, now we have real tests
Isolating Engine's namespace, needed for testing controllers:
http://stackoverflow.com/questions/5200654/how-do-i-write-a-rails-3-1-engine-controller-test-in-rspec
Added haml gem to the Gemfile, needed for testing controllers
Testing SemanalController#index
Deleted blank lines which bothered @esaborit4code
Now using factories
computing weeks in a separate method
This wasn't needed, as the require "kpi/engine" is already adding this code
Moving to the Semanal model the computing of last weeks
Hard test refactor with @esaborit4code
The remaining semanal_controller is too small to be tested… we only want to test that all is well wired