RailsCasts Pro episodes are now free!

Learn more or hide this

kalle saas's Profile

GitHub User: fluxsaas

Comments by kalle saas

Avatar

i like the idea, but if i start refactoring with a decorator i come across one big problem.

if i wanna wrap a small method to a decorator like user.full_name i would have to make tons of decorators to wrap all my associations, like note.user.full_name, project.owner.full_name etc. well maybe its just realy for big view stuff. but i would love to use it also for the small parts.

+ cancan not liking it :)

Avatar

hi,
i always get into problems testing the content of emails send with delayed_job. it should be pretty common to do so right ? haven't found any good solution for that... tips ?

why does that not work:

ruby
  it "emails user when requesting password reset" do
    ...
    Delayed::Worker.new.work_off
    last_email.to.should include(user.email)
  end

?

Avatar

hey,
is it possible to track files ? like images ? that would be nice :)