mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Slightly less overzealous testing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@147 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
458c5485a1
commit
0dfe122bb4
1 changed files with 1 additions and 7 deletions
|
@ -18,13 +18,7 @@ class <%= class_name %>Test < Test::Unit::TestCase
|
|||
@expected.body = read_fixture('<%= action %>')
|
||||
@expected.date = Time.now
|
||||
|
||||
created = nil
|
||||
assert_nothing_raised { created = <%= class_name %>.create_<%= action %>(@expected.date) }
|
||||
assert_not_nil created
|
||||
assert_equal @expected.encoded, created.encoded
|
||||
|
||||
assert_nothing_raised { <%= class_name %>.deliver_<%= action %>(@expected.date) }
|
||||
assert_equal @expected.encoded, ActionMailer::Base.deliveries.first.encoded
|
||||
assert_equal @expected.encoded, <%= class_name %>.create_<%= action %>(@expected.date).encoded
|
||||
end
|
||||
|
||||
<% end -%>
|
||||
|
|
Loading…
Reference in a new issue