Project

General

Profile

Defect #30955 » reminder-should-use-me-instead-of-user_id.diff

patch - Go MAEDA, 2019-03-03 05:38

View differences:

app/models/mailer.rb (作業コピー)
542 542
    @issues = issues
543 543
    @days = days
544 544
    @issues_url = url_for(:controller => 'issues', :action => 'index',
545
                                :set_filter => 1, :assigned_to_id => user.id,
545
                                :set_filter => 1, :assigned_to_id => 'me',
546 546
                                :sort => 'due_date:asc')
547 547
    mail :to => user,
548 548
      :subject => l(:mail_subject_reminder, :count => issues.size, :days => days)
test/unit/mailer_test.rb (作業コピー)
604 604
    mail = last_email
605 605
    assert mail.bcc.include?('dlopper@somenet.foo')
606 606
    assert_mail_body_match 'Bug #3: Error 281 when updating a recipe', mail
607
    assert_select_email do
608
      assert_select 'a[href=?]',
609
                    'http://localhost:3000/issues?assigned_to_id=me&set_filter=1&sort=due_date%3Aasc',
610
                    :text => 'View all issues'
611
    end
607 612
    assert_equal '1 issue(s) due in the next 42 days', mail.subject
608 613
  end
609 614

  
(4-4/4)