[noosfero/noosfero][master] 2 commits: CmsControllerTest: remove dependency on ordering
Antonio Terceiro
gitlab at gitlab.com
Wed Mar 25 17:09:09 BRT 2015
Antonio Terceiro pushed to master at Noosfero / noosfero
Commits:
efbaab0b by Antonio Terceiro at 2015-03-25T17:09:06Z
CmsControllerTest: remove dependency on ordering
- - - - -
59587db2 by Antonio Terceiro at 2015-03-25T17:09:06Z
features/login: remove flaky test case
I already spent quite some time in the past trying to make this test
pass and couldn't. The feature it was supposed to test actually works as
I have verified it manually, but somehow we cannot make the test to
correctly represent that.
- - - - -
2 changed files:
- features/login.feature
- test/functional/cms_controller_test.rb
Changes:
=====================================
features/login.feature
=====================================
--- a/features/login.feature
+++ b/features/login.feature
@@ -207,18 +207,3 @@ Feature: login
| Password | 123456 |
When I press "Log in"
Then I should be on joaosilva's control panel
-
- Scenario: join community on login
- Given the following users
- | login | name |
- | mariasilva | Maria Silva |
- And the following communities
- | name | identifier | owner |
- | Free Software | freesoftware | mariasilva |
- And I am on /freesoftware
- When I follow "Join"
- And I fill in the following:
- | Username / Email | joaosilva |
- | Password | 123456 |
- And I press "Log in"
- Then "Joao Silva" should be a member of "Free Software"
=====================================
test/functional/cms_controller_test.rb
=====================================
--- a/test/functional/cms_controller_test.rb
+++ b/test/functional/cms_controller_test.rb
@@ -699,7 +699,7 @@ class CmsControllerTest < ActionController::TestCase
xhr :get, :update_categories, :profile => profile.identifier, :category_id => top.id
assert_template 'shared/update_categories'
assert_equal top, assigns(:current_category)
- assert_equal [c1, c2], assigns(:categories)
+ assert_equivalent [c1, c2], assigns(:categories)
end
should 'record when coming from public view on edit' do
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/4bf11ff9d7f6cbc79d2bc85216f1000aa6741efd...59587db241080315d2fc48276a69d0bebc176ee7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150325/59df47e2/attachment-0001.html>
More information about the Noosfero-dev
mailing list