This repository has been archived by the owner on Jan 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add qualification restrictions (#409)
* added a mock for personal records * mocks for qualifications * started writing code for qualification check * finished basic test cases * fixed qualifications not being mocked * changed 1/0 to true/false and removed puts * fixed failure on update request * fixed failure on update request again * qualifications refactor started * added nil test cases for qualification not enforced * added tests for all nil cases * all create and update tests added - no ranking quali yet * rubocop fix * added rankings test cases * refactored qualification fetching code - still needs tests * rubocop changes * added request tests * fixed rubocop issues * comp api changes, all tests passing * qualification fetch refactor * actaully can't remember * tests passing * create tests passing/refactored * update tests passing * added whenDate support for qualifications * rubocop changes * removed bad helper files * refactors * refactors * all tests passing with refactred stubs * weird changes to make it run locally * rubocop changes * minor diff changes * attempted fix at require_relative issue * removed create tests * split up helper functions into different files * fixed commenting issue * review changes * rubocop changes * added quali controller tests
- Loading branch information
Showing
15 changed files
with
535 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
class RegistrationError < StandardError | ||
attr_reader :http_status, :error | ||
attr_reader :http_status, :error, :data | ||
|
||
def initialize(http_status, error) | ||
def initialize(http_status, error, data = nil) | ||
@http_status = http_status | ||
@error = error | ||
@data = data | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.