Commit ab8cef16a82a40267587916c5f5dece655f3fc9c
1 parent
d7c39b57
Exists in
master
and in
27 other branches
Fix EmailActivation unit test partially
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/unit/email_activation_test.rb
| ... | ... | @@ -12,14 +12,14 @@ class EmailActivationTest < ActiveSupport::TestCase |
| 12 | 12 | task = EmailActivation.new |
| 13 | 13 | task.valid? |
| 14 | 14 | |
| 15 | - assert task.errors.invalid?(:requestor_id) | |
| 15 | + assert task.errors[:requestor_id].any? | |
| 16 | 16 | end |
| 17 | 17 | |
| 18 | 18 | should 'require a target (environment)' do |
| 19 | 19 | task = EmailActivation.new |
| 20 | 20 | task.valid? |
| 21 | 21 | |
| 22 | - assert task.errors.invalid?(:target_id) | |
| 22 | + assert task.errors[:target_id].any? | |
| 23 | 23 | end |
| 24 | 24 | |
| 25 | 25 | should 'enable user email when finish' do | ... | ... |