Commit 41e841ea0bec1458022eef7153151392733eb7ae
1 parent
342f86a9
Exists in
master
and in
29 other branches
Generalize lattes_curriculum plugins' cucumber test
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
plugins/lattes_curriculum/features/lattes_curriculum.feature
... | ... | @@ -29,7 +29,7 @@ Feature: import lattes information |
29 | 29 | And I fill in "Lattes URL" with "http://lattes.cnpq.br/2864976228727880" |
30 | 30 | And I press "Save" |
31 | 31 | And I go to /profile/admin_user#lattes_tab |
32 | - Then I should see "Endereço para acessar este CV: http://lattes.cnpq.br/2864976228727880" | |
32 | + Then I should see "Lattes" | |
33 | 33 | |
34 | 34 | Scenario: Don't show lattes informations for blank lattes urls |
35 | 35 | Given I am on admin_user's control panel | ... | ... |
plugins/lattes_curriculum/lib/html_parser.rb
... | ... | @@ -19,6 +19,8 @@ class Html_parser |
19 | 19 | page = _("Lattes not found. Please, make sure the informed URL is correct.") |
20 | 20 | rescue Timeout::Error => e |
21 | 21 | page = _("Lattes Platform is unreachable. Please, try it later.") |
22 | + rescue | |
23 | + page = _("Could not import the lattes") | |
22 | 24 | end |
23 | 25 | end |
24 | 26 | ... | ... |