8000 Improve tests for review_metrics by elad-eyal · Pull Request #675 · frab/frab · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improve tests for review_metrics #675

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

Merged
merged 3 commits into from
Feb 15, 2020
Merged

Conversation

elad-eyal
Copy link
Collaborator
@elad-eyal elad-eyal commented Nov 29, 2019

The first commit in this PR "add ransackers explicitly" makes sure any change to a review metric triggers a change in its ransacker in events.rb. The ransacker is used when sorting the events tables by a review metric. Without this change, rails frab:add_fake_data creates non-sortable review metrics which was fixed by relaunching rails. Also some of the tests in this PR would have failed.

The second commit in this PR "reorg tests for review_metric" changes the conference factory to support conference with review metrics and review scores. test/features/editing_event_review_test.rb is changed to use this factory

The third commit adds test/features/sorting_event_list_test.rb, which iterates through all the sub-tabs in the Events page (ie., All Events, My Events, Attachments, Event Ratings, Feedbacks) and iterates through all the filter links, and makes sure they can sort ascending and descending.

@elad-eyal elad-eyal mentioned this pull request Nov 30, 2019
@elad-eyal elad-eyal force-pushed the improve_tests branch 10 times, most recently from 7df7192 to d33f1f8 Compare December 7, 2019 15:27
@elad-eyal elad-eyal force-pushed the improve_tests branch 2 times, most recently from 1cae515 to df7ebb9 Compare December 7, 2019 15:54
@elad-eyal elad-eyal changed the title Improve tests Improve tests for review_metrics Dec 7, 2019
@erdgeist erdgeist merged commit 8ebc2dc into frab:master Feb 15, 2020
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
0