change to rspec, add days function and fix weeks view