Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
AO3-4928 extend gifts_controller coverage #3157
Conversation
| @@ -0,0 +1,8 @@ | ||
| +require 'faker' |
| + work { create(:work) } | ||
| + recipient "recipient" | ||
| + end | ||
| +end |
| + include RedirectExpectationHelper | ||
| + | ||
| + describe 'toggle_rejected' | ||
| + let (:gift) { create(:gift) } |
| + describe 'toggle_rejected' | ||
| + let (:gift) { create(:gift) } | ||
| + | ||
| + it 'should reject if no user is logged on' do |
| + post :toggle_rejected, params: { id: gift.id } | ||
| + expect(flash[:error]).to include("Sorry, you don't have permission to access the page you were trying to reach. Please log in.") | ||
| + end | ||
| +end |
hatal175
added some commits
Nov 12, 2017
sarken
added
the
Awaiting review
label
Nov 12, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hatal175 commentedNov 12, 2017
Fixed return problem in access_denied error path.
Issue
https://otwarchive.atlassian.net/browse/AO3-4928
Purpose
I extended test coverage for gifts_controller.
Testing
Run tests.
Credit
Tal Hayon
Please use he.