Feature #13307 » test-for-13307.diff
test/unit/mailer_test.rb (working copy) | ||
---|---|---|
378 | 378 |
def test_issue_add_should_not_include_disabled_fields |
379 | 379 |
issue = Issue.find(2) |
380 | 380 |
tracker = issue.tracker |
381 |
tracker.core_fields -= ['fixed_version_id'] |
|
381 |
tracker.core_fields -= ['fixed_version_id', 'start_date']
|
|
382 | 382 |
tracker.save! |
383 | 383 |
assert Mailer.deliver_issue_add(issue) |
384 | 384 |
assert_mail_body_no_match 'Target version', last_email |
385 |
assert_mail_body_no_match 'Start date', last_email |
|
385 | 386 |
assert_select_email do |
386 | 387 |
assert_select 'li', :text => /Target version/, :count => 0 |
388 |
assert_select 'li', :text => /Start date/, :count => 0 |
|
387 | 389 |
end |
388 | 390 |
end |
389 | 391 |
- « Previous
- 1
- 2
- 3
- 4
- Next »