Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests for peeking into rooms #154

Merged
merged 1 commit into from
Jan 20, 2016
Merged

Conversation

illicitonion
Copy link
Contributor

This duplicates all tests which should work for both anonymous users and
real users peeking, so that both cases are actually tested.

It also deletes the tests for /sync, because that isn't intended to be supported.

@illicitonion
Copy link
Contributor Author

Depends on matrix-org/synapse#510

requires => [ anonymous_user_fixture(), local_user_fixture() ],
foreach my $i (
["Anonymous", sub { anonymous_user_fixture() }],
["Real", sub { local_user_fixture() }]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wants spaces inside [ ... ]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@leonerd
Copy link
Contributor

leonerd commented Jan 20, 2016

A cautious LGTM, as I haven't looked in too much detail at the logic of the tests; expecting they're just reïndented from the original ones outside the for loop.
I've put a few small notes for improvement in anyway, mostly just the gradual upgrade of manual eq tests to using assert_eq() as we go.

This duplicates all tests which should work for both anonymous users and
real users peeking, so that both cases are actually tested.

It also deletes the tests for /sync, because that isn't intended to be supported.
illicitonion added a commit that referenced this pull request Jan 20, 2016
Tests for peeking into rooms

This duplicates all tests which should work for both anonymous users and
real users peeking, so that both cases are actually tested.

It also deletes the tests for /sync, because that isn't intended to be supported.
@illicitonion illicitonion merged commit a76830f into develop Jan 20, 2016
@illicitonion illicitonion deleted the daniel/nonguestpeeking branch March 10, 2016 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants