Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
baff authored and rafaelbrandao committed Apr 25, 2013
1 parent 1b9a4c4 commit e6f1cd5
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ package rgms.member


import org.springframework.dao.DataIntegrityViolationException

import rgms.news.News
import rgms.news.NewsController
import rgms.news.TwitterConnection
import twitter4j.Status


class ResearchGroupController {

static allowedMethods = [save: "POST", update: "POST", delete: "POST"]
Expand Down
2 changes: 1 addition & 1 deletion grails-app/views/bookChapter/_form.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
<g:message code="bookChapter.members.label" default="Members" />
<span class="required-indicator">*</span>
</label>

<g:select name="members" from="${Member.list()}" size="10" multiple="yes" optionKey="id" multiple="true"
value="${bookChapterInstance?.members ? bookChapterInstance.members : Member.findByUsername(SecurityUtils.subject?.principal).id}" />


</div>

39 changes: 17 additions & 22 deletions test/cucumber/News.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,21 @@ Feature: news
Jointly this I want too integrate an twitter account to publish news into RGMS system.

Scenario: new news
Given the system has no news with description "noticia1teste" and date "07-04-2013" for "taes" research group
When I create a news with description "noticia1teste" and date "07-04-2013" for "taes" research group
Then the news with description "noticia1teste", date "07-04-2013" and "taes" research group is properly stored by the system

Scenario: delete news
Given the system has a news with description "noticia1teste" and date "07-04-2013" for "taes" research group
When I delete a news with description "noticia1teste" and date "07-04-2013" of "taes" research group
Then the news with "noticia1teste" and date "07-04-2013" doesnt exists to "taes" research group

Scenario: new news with existing
Given the system has a news with description "noticia1teste" and date "07-04-2013" for "taes" research group
When I create a news with description "noticia1teste" and date "07-04-2013" for "taes" research group
Then the news with "noticia1teste" and date "07-04-2013" is not registered to "taes" research group
Given the system has no news with description "noticia1teste"
When I create a news with description "noticia1teste"
Then the news with description "noticia1teste" is properly stored by the system

Scenario: insert Twitter account
Given the research group "taes" in the system has no Twitter account associated
When I associate the account "olhardigital" to "taes" group
Then "taes" research group has a twitter account "olhardigital" registred

Scenario: retrive Twitter timeline
Given the research group "RGTST" in the system has Twitter account "olhardigital" associated
When I request to update the news from Twitter "olhardigital"
Then news of "RGTST" research group has been updated
Scenario: delete news
Given the system has a news with description "noticia1teste"
When I delete a news with description "noticia1teste"
Then the news with "noticia1teste" doesnt exists

Scenario: new news with existing
Given the system has a news with description "noticia1teste"
When I create a news with description "noticia1teste"
Then the news with "noticia1teste" is not registered

Scenario: integrate Twitter account
Given the research group in the system has no Twitter account "[email protected]" associated
When I associate the account "[email protected]"
Then the news can be retrieved by a Twitter post with "[email protected]"
1 change: 0 additions & 1 deletion test/cucumber/steps/NewsSteps.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,3 @@ Then(~'^news of "([^"]*)" research group has been updated$') { String groupName
researchGroup = ResearchGroup.findByName(groupName)
assert researchGroup.news.size() == 10
}

2 changes: 1 addition & 1 deletion web-app/css/errors.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
h1, h2 {
margin: 10px 25px 5px;
margin: 10px 25px 5px;
}

h2 {
Expand Down

0 comments on commit e6f1cd5

Please sign in to comment.