[Git][noosfero/noosfero][master] 2 commits: Generalize lattes_curriculum plugins' cucumber test

Antonio Terceiro gitlab at gitlab.com
Tue Jul 21 16:34:07 BRT 2015


Antonio Terceiro pushed to branch master at Noosfero / noosfero


Commits:
41e841ea by Arthur Del Esposte at 2015-07-21T19:03:08Z
Generalize lattes_curriculum plugins' cucumber test

- - - - -
11b92b2f by Antonio Terceiro at 2015-07-21T19:33:51Z
Merge branch 'lattes_fix' into 'master'

Generalize lattes_curriculum plugins' cucumber test

See merge request !631

- - - - -


2 changed files:

- plugins/lattes_curriculum/features/lattes_curriculum.feature
- plugins/lattes_curriculum/lib/html_parser.rb


Changes:

=====================================
plugins/lattes_curriculum/features/lattes_curriculum.feature
=====================================
--- a/plugins/lattes_curriculum/features/lattes_curriculum.feature
+++ b/plugins/lattes_curriculum/features/lattes_curriculum.feature
@@ -29,7 +29,7 @@ Feature: import lattes information
     And I fill in "Lattes URL" with "http://lattes.cnpq.br/2864976228727880"
     And I press "Save"
     And I go to /profile/admin_user#lattes_tab
-    Then I should see "Endereço para acessar este CV: http://lattes.cnpq.br/2864976228727880"
+    Then I should see "Lattes"
 
   Scenario: Don't show lattes informations for blank lattes urls
     Given I am on admin_user's control panel


=====================================
plugins/lattes_curriculum/lib/html_parser.rb
=====================================
--- a/plugins/lattes_curriculum/lib/html_parser.rb
+++ b/plugins/lattes_curriculum/lib/html_parser.rb
@@ -19,6 +19,8 @@ class Html_parser
       page = _("Lattes not found. Please, make sure the informed URL is correct.")
     rescue Timeout::Error => e
       page = _("Lattes Platform is unreachable. Please, try it later.")
+    rescue
+      page = _("Could not import the lattes")
     end
   end
 



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/7e5512ff6b319846a912ae29a1ddcc75b82570d4...11b92b2f527610bc0b5c6d86defe8d2ceb871b11
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150721/4414d9aa/attachment.html>


More information about the Noosfero-dev mailing list