Defect #33787 ยป 33787-apitest-failed.patch
| test/integration/api_test/users_test.rb | ||
|---|---|---|
| 66 | 66 | |
| 67 | 67 |
assert_response :success |
| 68 | 68 |
assert_select 'user id', :text => '2' |
| 69 |
assert_select 'user updated_on', :text => '2006-07-19T20:42:15Z'
|
|
| 69 |
assert_select 'user updated_on', :text => Time.zone.parse('2006-07-19T20:42:15Z').iso8601
|
|
| 70 | 70 |
assert_select 'user passwd_changed_on', :text => '' |
| 71 | 71 |
end |
| 72 | 72 | |
| ... | ... | |
| 78 | 78 |
assert_kind_of Hash, json |
| 79 | 79 |
assert_kind_of Hash, json['user'] |
| 80 | 80 |
assert_equal 2, json['user']['id'] |
| 81 |
assert_equal '2006-07-19T20:42:15Z', json['user']['updated_on']
|
|
| 81 |
assert_equal Time.zone.parse('2006-07-19T20:42:15Z').iso8601, json['user']['updated_on']
|
|
| 82 | 82 |
assert_nil json['user']['passwd_changed_on'] |
| 83 | 83 |
end |
| 84 | 84 | |