Commit 0c90a215e85ebd3c37749589100c69fbade23c46

Authored by Braulio Bhavamitra
1 parent c2f481ce

sub_organizations: fix tests with newer rubies

plugins/sub_organizations/features/sub_organizations_block.feature
@@ -11,7 +11,7 @@ Feature: related_organizations_block @@ -11,7 +11,7 @@ Feature: related_organizations_block
11 And the following community 11 And the following community
12 | identifier | name | owner | 12 | identifier | name | owner |
13 | springfield | Springfield | homer | 13 | springfield | Springfield | homer |
14 - | moe | Moe's | homer | 14 + | moe | Moe | homer |
15 And the following enterprise 15 And the following enterprise
16 | identifier | name | owner | 16 | identifier | name | owner |
17 | duff | Duff | homer | 17 | duff | Duff | homer |
@@ -30,7 +30,7 @@ Feature: related_organizations_block @@ -30,7 +30,7 @@ Feature: related_organizations_block
30 And I follow "Add a block" 30 And I follow "Add a block"
31 And I choose "Related Organizations" 31 And I choose "Related Organizations"
32 And I press "Add" 32 And I press "Add"
33 - Then I should see "Moe's" within ".related-organizations-block" 33 + Then I should see "Moe" within ".related-organizations-block"
34 And I should see "Duff" within ".related-organizations-block" 34 And I should see "Duff" within ".related-organizations-block"
35 35
36 Scenario: display only sub-communities 36 Scenario: display only sub-communities
@@ -41,12 +41,12 @@ Feature: related_organizations_block @@ -41,12 +41,12 @@ Feature: related_organizations_block
41 And I follow "Edit" within ".related-organizations-block" 41 And I follow "Edit" within ".related-organizations-block"
42 And I select "Community" from "block_organization_type" 42 And I select "Community" from "block_organization_type"
43 And I press "Save" 43 And I press "Save"
44 - Then I should see "Moe's" within ".related-organizations-block" 44 + Then I should see "Moe" within ".related-organizations-block"
45 And I should not see "Duff" within ".related-organizations-block" 45 And I should not see "Duff" within ".related-organizations-block"
46 46
47 Scenario: display both sub types on sub-organizations page 47 Scenario: display both sub types on sub-organizations page
48 When I go to springfield's "children" page from "SubOrganizationsPluginProfileController" of "SubOrganizations" plugin 48 When I go to springfield's "children" page from "SubOrganizationsPluginProfileController" of "SubOrganizations" plugin
49 - Then I should see "Moe's" 49 + Then I should see "Moe"
50 And I should see "Duff" 50 And I should see "Duff"
51 51
52 Scenario: display only sub-communities on sub-organizations page 52 Scenario: display only sub-communities on sub-organizations page
@@ -58,5 +58,5 @@ Feature: related_organizations_block @@ -58,5 +58,5 @@ Feature: related_organizations_block
58 And I select "Community" from "block_organization_type" 58 And I select "Community" from "block_organization_type"
59 And I press "Save" 59 And I press "Save"
60 And I follow "View all" within ".related-organizations-block" 60 And I follow "View all" within ".related-organizations-block"
61 - Then I should see "Moe's" within ".profile-list" 61 + Then I should see "Moe" within ".profile-list"
62 And I should not see "Duff" within ".profile-list" 62 And I should not see "Duff" within ".profile-list"