RSpec Code Examples

 

 

ApplicationController
authorize user
when no auth token
should not have user0.01994s
behaves like login required
should include error "Login required"0.01024s
behaves like a response with error code
should respond with 4030.00674s
when invalid auth token
should not have user0.01108s
behaves like not authorized
should include error "Not authorized"0.00655s
behaves like a response with error code
should respond with 4010.00691s
when valid auth token
should have user0.03171s
should be user signed in0.01386s
behaves like a response with success code
should respond with 2000.01396s
V1::MatchScoreboardController
GET #show
when doubles
behaves like doubles match scoreboard response
should include :first_team and :second_team0.11436s
behaves like action response
should include :id, :title, :doubles, :actions, :errors, :sets, :state, :winner, and :servers0.04755s
should respond with 2000.04849s
when singles
behaves like singles match scoreboard response
should include :first_player and :second_player0.26684s
behaves like action response
should include :id, :title, :doubles, :actions, :errors, :sets, :state, :winner, and :servers0.82308s
should respond with 2000.97866s
when does not exist
behaves like not found
behaves like a response with error code
should respond with 4040.07863s
PUT/PATCH #update
when authorized
when is started
behaves like doubles match scoreboard response
should include :first_team and :second_team0.12709s
behaves like action response
should include :id, :title, :doubles, :actions, :errors, :sets, :state, :winner, and :servers0.14697s
should respond with 2000.09792s
behaves like accepted action
should not have errors0.07764s
when action is unknown
unknown name
behaves like general error
should include error "Unknown action: xxx"0.05255s
behaves like a response with error code
should respond with 4220.05100s
requires a parameter
behaves like general error
should include error "Unknown team for action: win_game"0.05223s
behaves like a response with error code
should respond with 4220.06087s
when is denied
behaves like denied action
should have errors0.06439s
when does not exists
behaves like not found
behaves like a response with error code
should respond with 4040.09387s
when pass parameter
to start game
behaves like singles match scoreboard response
should include :first_player and :second_player0.08144s
behaves like action response
should include :id, :title, :doubles, :actions, :errors, :sets, :state, :winner, and :servers0.07895s
should respond with 2000.07031s
behaves like accepted action
should not have errors0.07206s
to win
doubles
behaves like doubles match scoreboard response
should include :first_team and :second_team0.11164s
behaves like action response
should include :id, :title, :doubles, :actions, :errors, :sets, :state, :winner, and :servers0.11123s
should respond with 2000.15271s
behaves like accepted action
should not have errors0.14868s
singles
behaves like singles match scoreboard response
should include :first_player and :second_player0.09865s
behaves like action response
should include :id, :title, :doubles, :actions, :errors, :sets, :state, :winner, and :servers0.08762s
should respond with 2000.11712s
behaves like accepted action
should not have errors0.09664s
when pass scoreboard version
that is behind
behaves like denied action
should have errors0.06001s
that is ahead
behaves like denied action
should have errors0.05974s
that is correct
behaves like singles match scoreboard response
should include :first_player and :second_player0.06990s
behaves like action response
should include :id, :title, :doubles, :actions, :errors, :sets, :state, :winner, and :servers0.06834s
should respond with 2000.07277s
behaves like accepted action
should not have errors0.06700s
when not authorized
behaves like login required
should include error "Login required"0.00400s
behaves like a response with error code
should respond with 4030.00351s
V1::MatchesController
GET #index
behaves like match list response
should include :id, :title, and :doubles0.04325s
behaves like a response with success code
should respond with 2000.04101s
GET #show
when doubles exists
behaves like doubles match response
should include :id, :title, :first_team, :second_team, and :doubles0.04245s
behaves like a response with success code
should respond with 2000.04177s
when singles exists
behaves like singles match response
should include :id, :title, :first_player, :second_player, and :doubles0.02403s
behaves like a response with success code
should respond with 2000.02661s
when does not exists
behaves like not found
behaves like a response with error code
should respond with 4040.06767s
POST #create
when authorized
when doubles is successfully created
should render title0.05520s
behaves like doubles match response
should include :id, :title, :first_team, :second_team, and :doubles0.06136s
behaves like a response with success code
should respond with 2010.07161s
when singles is successfully created
should render json representation0.04049s
behaves like singles match response
should include :id, :title, :first_player, :second_player, and :doubles0.04328s
behaves like a response with success code
should respond with 2010.03707s
when title is nil
should render json representation0.07297s
when title is blank
should generate a title0.09897s
when first team is missing
behaves like attribute error
should include error :first_team with value of "can't be blank"0.15536s
behaves like a response with error code
should respond with 4220.09559s
when second team is missing
behaves like attribute error
should include error :second_team with value of "can't be blank"0.05985s
behaves like a response with error code
should respond with 4220.05099s
when scoring is missing
behaves like attribute error
should include error :scoring with value of "can't be blank"0.10571s
behaves like a response with error code
should respond with 4220.07157s
when title is already taken
behaves like attribute error
should include error :title with value of "has already been taken"0.09239s
behaves like a response with error code
should respond with 4220.07822s
when not authorized
when is not created
behaves like login required
should include error "Login required"0.00573s
behaves like a response with error code
should respond with 4030.00679s
PUT/PATCH #update
when authorized
when is successfully updated
singles
should render json representation0.03695s
behaves like singles match response
should include :id, :title, :first_player, :second_player, and :doubles0.03246s
behaves like a response with success code
should respond with 2000.04009s
doubles
should render json representation0.07953s
behaves like doubles match response
should include :id, :title, :first_team, :second_team, and :doubles0.08027s
behaves like a response with success code
should respond with 2000.09545s
when change singles to doubles
behaves like doubles match response
should include :id, :title, :first_team, :second_team, and :doubles0.20095s
behaves like doubles teams
first_team
should not be nil0.23792s
should be truthy0.23047s
second_team
should not be nil0.26796s
should be truthy0.18144s
behaves like a response with success code
should respond with 2000.07912s
when change doubles to singles
behaves like singles match response
should include :id, :title, :first_player, :second_player, and :doubles0.06256s
behaves like singles players
first_player
should not be nil0.06338s
second_player
should not be nil0.12262s
behaves like a response with success code
should respond with 2000.07178s
when does not exists
behaves like not found
behaves like a response with error code
should respond with 4040.06487s
when title is already taken
behaves like attribute error
should include error :title with value of "has already been taken"0.10251s
behaves like a response with error code
should respond with 4220.15045s
when not authorized
behaves like login required
should include error "Login required"0.00861s
behaves like a response with error code
should respond with 4030.00849s
DELETE #destroy
when authorized
when exists
should respond with 2040.09106s
when does not exists
behaves like not found
behaves like a response with error code
should respond with 4040.10683s
when not authorized
behaves like login required
should include error "Login required"0.01298s
behaves like a response with error code
should respond with 4030.00736s
V1::PlayersController
GET #index
when exists
behaves like player list response
should include :id and :name0.02063s
behaves like a response with success code
should respond with 2000.03201s
GET #show
when exists
should render json representation0.00985s
behaves like player response
should include :id and :name0.01686s
behaves like a response with success code
should respond with 2000.02465s
when does not exists
behaves like not found
behaves like a response with error code
should respond with 4040.01977s
POST #create
when authorized
when is successfully created
should render json representation0.03419s
behaves like player response
should include :id and :name0.03850s
behaves like a response with success code
should respond with 2010.02370s
when name is missing
behaves like attribute error
should include error :name with value of "can't be blank"0.01939s
behaves like a response with error code
should respond with 4220.03957s
when name is already taken
behaves like attribute error
should include error :name with value of "has already been taken"0.02479s
behaves like a response with error code
should respond with 4220.01713s
when not authorized
when is not created
behaves like login required
should include error "Login required"0.00810s
behaves like a response with error code
should respond with 4030.00900s
PUT/PATCH #update
when authorized
when is successfully updated
should render json representation0.03244s
behaves like player response
should include :id and :name0.04260s
behaves like a response with success code
should respond with 2000.02170s
when does not exists
behaves like not found
behaves like a response with error code
should respond with 4040.02982s
when name is missing
behaves like attribute error
should include error :name with value of "can't be blank"0.02791s
behaves like a response with error code
should respond with 4220.04060s
when name is already taken
behaves like attribute error
should include error :name with value of "has already been taken"0.03465s
behaves like a response with error code
should respond with 4220.03490s
when not authorized
behaves like login required
should include error "Login required"0.00659s
behaves like a response with error code
should respond with 4030.01194s
DELETE #destroy
when authorized
when exists
behaves like a response with success code
should respond with 2040.03708s
when does not exists
behaves like not found
behaves like a response with error code
should respond with 4040.04137s
when player on team
behaves like an error when delete referenced entity
should include error :errors with value of "Can't delete a player in a match or on a team"0.06278s
should respond with 4220.02442s
when player in match
behaves like an error when delete referenced entity
should include error :errors with value of "Can't delete a player in a match or on a team"0.10171s
should respond with 4220.18287s
when not authorized
behaves like login required
should include error "Login required"0.04238s
behaves like a response with error code
should respond with 4030.01553s
V1::SessionsController
POST #create
when the credentials are correct
behaves like a response with success code
should respond with 2000.04359s
when the credentials are incorrect
should include error "Invalid username or password"0.03248s
behaves like a response with error code
should respond with 4220.03654s
DELETE #destroy
valid token
behaves like a response with success code
should respond with 2040.05501s
invalid token
behaves like a response with success code
should respond with 2040.01546s
V1::TeamsController
GET #index
behaves like team list response
should include :id, :name, :first_player, and :second_player0.09085s
behaves like a response with success code
should respond with 2000.08048s
GET #show
when exists
should render the json representation0.07515s
behaves like team response
should include :id, :name, :first_player, and :second_player0.10640s
behaves like a response with success code
should respond with 2000.03240s
when exists doubles team
should render the json representation0.04368s
behaves like team response
should include :id, :name, :first_player, and :second_player0.03890s
behaves like a response with success code
should respond with 2000.01905s
when does not exists
behaves like not found
behaves like a response with error code
should respond with 4040.06860s
POST #create
when authorized
when is successfully created
should render the json representation0.09731s
behaves like a response with success code
should respond with 2010.10268s
when doubles team is successfully created
should render the json representation0.08863s
behaves like a response with success code
should respond with 2010.10517s
when name is blank
should generate a name0.07303s
when name is nil
should generate a name0.15175s
when first player is missing
behaves like attribute error
should include error :first_player with value of "can't be blank"0.02898s
behaves like a response with error code
should respond with 4220.06189s
when second player is missing
behaves like attribute error
should include error :second_player with value of "must be specified"0.05157s
behaves like a response with error code
should respond with 4220.07531s
when name is already taken
behaves like attribute error
should include error :name with value of "has already been taken"0.07721s
behaves like a response with error code
should respond with 4220.07435s
when first player not found
behaves like attribute error
should include error :first_player with value of "not found"0.19185s
behaves like a response with error code
should respond with 4220.08634s
when second player is not found
behaves like attribute error
should include error :second_player with value of "not found"0.10516s
behaves like a response with error code
should respond with 4220.10297s
when not authorized
when is not created
behaves like login required
should include error "Login required"0.04265s
behaves like a response with error code
should respond with 4030.00655s
PUT/PATCH #update
when authorized
when is successfully updated
should render the json representation0.06331s
behaves like a response with success code
should respond with 2000.11863s
when does not exists
behaves like not found
behaves like a response with error code
should respond with 4040.10864s
when name is already taken
behaves like attribute error
should include error :name with value of "has already been taken"0.11474s
behaves like a response with error code
should respond with 4220.07273s
when not authorized
behaves like login required
should include error "Login required"0.00971s
behaves like a response with error code
should respond with 4030.00697s
DELETE #destroy
when authorized
when exists
behaves like a response with success code
should respond with 2040.02800s
when does not exists
behaves like not found
behaves like a response with error code
should respond with 4040.02684s
when team in match
behaves like an error when delete referenced entity
should include error :errors with value of "Can't delete a team in a match"0.04380s
should respond with 4220.04620s
when not authorized
behaves like login required
should include error "Login required"0.00417s
behaves like a response with error code
should respond with 4030.00371s
V1::UserController
GET #show
when is authorized
should render the json representation0.01175s
behaves like a response with success code
should respond with 2000.00888s
when is not logged in
behaves like login required
should include error "Login required"0.00357s
behaves like a response with error code
should respond with 4030.00390s
ApiConstraints
when no version and default
should match0.00146s
when no version and not default
should not match0.00139s
when not a version and default
should not match0.00122s
when correct version
should match0.00118s
when incorrect version
should not match0.00126s
MatchPlayer
::convert_scores
should convert scores0.00154s
::play_match
eight game pro set
singles
should have winner0.25057s
doubles
should have winner0.28137s
two sets
singles
should have winner0.34165s
doubles
should have winner0.43272s
three sets
singles
should have winner0.76791s
doubles
should have winner0.41104s
invalid score
should raise error0.01604s
Play
any match
should detect unknown action0.01486s
should respond with valid actions0.01392s
behaves like a match not started
should not have changes0.01419s
when attempt invalid actions
when discard_play
should deny action0.01549s
when start_set
should deny action0.01577s
when start_game
should deny action0.01550s
when start_tiebreak
should deny action0.01453s
when remove_last_change
should deny action0.01576s
when start_match_tiebreak
should deny action0.02446s
start match
should not start again0.02934s
behaves like a match just started
behaves like a game not started
should not permit win_game or win_tiebreak actions0.03199s
behaves like a match set in progress
should have last set in progress0.03073s
remove last change
behaves like a match not started
should not have changes0.05906s
discard play
behaves like a match not started
should not have changes0.04495s
when win actions are denied
when win_game
should deny action0.03355s
when win_tiebreak
should deny action0.03295s
when win_match_tiebreak
should deny action0.02932s
start game
singles match
with first server
behaves like a match with first game started
behaves like a match with game in progress
should have game in progress0.05085s
behaves like a match with one game
should have set with 1 game0.07899s
remove last change
behaves like a match just started
behaves like a game not started
should not permit win_game or win_tiebreak actions0.06729s
behaves like a match set in progress
should have last set in progress0.07074s
with first server team
behaves like a match with first game started
behaves like a match with game in progress
should have game in progress0.05865s
behaves like a match with one game
should have set with 1 game0.08761s
without server
should not start0.09310s
doubles match
start first game with first server
behaves like a match with first game started
behaves like a match with game in progress
should have game in progress0.09182s
behaves like a match with one game
should have set with 1 game0.08928s
remove last change
behaves like a match just started
behaves like a game not started
should not permit win_game or win_tiebreak actions0.16560s
behaves like a match set in progress
should have last set in progress0.14615s
start second game
start second game with second server
behaves like a match with second game started
behaves like a match with game in progress
should have game in progress0.15806s
behaves like a match with two games
should have set with 2 games0.18689s
remove last change
behaves like a match with game won
should have game with winner0.15413s
second game without server
should not start0.12440s
second game with invalid server
should not allow same server0.08431s
should not allow server from same team0.09490s
first game without server
should not start0.05491s
win game
behaves like a match with game in progress
should have game in progress0.05026s
with player
behaves like a match with game won
should have game with winner0.05763s
remove last change
behaves like a match with game in progress
should have game in progress0.06286s
without player
should not win0.04705s
complete set
single set match
behaves like a match with complete set
should have complete set0.29955s
remove last change
behaves like a match with game in progress
should have game in progress0.31195s
set tiebreak
behaves like a match can start set tiebreak
should permit start_tiebreak action0.34611s
start tiebreak
behaves like a match in set tiebreak
should permit win_tiebreak action0.69822s
win tiebreak with player
should not win tiebreak again0.47692s
behaves like a match with complete set
should have complete set0.46989s
remove last change
behaves like a match in set tiebreak
should permit win_tiebreak action0.57268s
win tiebreak without player
should not win0.44969s
remove last change
behaves like a match can start set tiebreak
should permit start_tiebreak action0.41855s
remove second set
behaves like a match with one set
should have 1 set0.18224s
start second set
behaves like a match with two sets
should have 2 sets0.22130s
remove started set
behaves like a match with one set
should have 1 set0.20357s
match tiebreak
behaves like a match can start match tiebreak
should permit start_match_tiebreak action0.30773s
start
behaves like a match in match tiebreak
should permit win_match_tiebreak action0.33923s
win with player
should not win again0.38189s
behaves like a match complete
should be complete0.35827s
remove last change
behaves like a match in match tiebreak
should permit win_match_tiebreak action0.41299s
win without player
should not win0.31205s
remove last change
behaves like a match can start match tiebreak
should permit start_match_tiebreak action0.32257s
players serving first set
singles
alternate order
first
behaves like a match with second player serving
should second_player be serving0.05727s
second
behaves like a match with first player serving
should first_player be serving0.07866s
third
behaves like a match with second player serving
should second_player be serving0.09738s
sequential order
first
behaves like a match with first player serving
should first_player be serving0.06430s
second
behaves like a match with second player serving
should second_player be serving0.06790s
third
behaves like a match with first player serving
should first_player be serving0.10371s
doubles
alternate order
first
behaves like a match with second player serving
should first_team.second_player be serving0.07914s
second
behaves like a match with third player serving
should second_team.first_player be serving0.10250s
third
behaves like a match with first player serving
should first_team.first_player be serving0.13349s
fourth
behaves like a match with fourth player serving
should second_team.second_player be serving0.14582s
fifth
behaves like a match with second player serving
should first_team.second_player be serving0.21522s
sequential order
first
behaves like a match with first player serving
should first_team.first_player be serving0.06794s
second
behaves like a match with third player serving
should second_team.first_player be serving0.11926s
third
behaves like a match with second player serving
should first_team.second_player be serving0.10514s
fourth
behaves like a match with fourth player serving
should second_team.second_player be serving0.13179s
fifth
behaves like a match with first player serving
should first_team.first_player be serving0.13312s
players serving second set
odd number of games
singles
behaves like a match with second player serving
should second_player be serving0.22906s
doubles
behaves like a match with third player serving
should second_team.first_player be serving0.25067s
even number of games
singles
behaves like a match with first player serving
should first_player be serving0.26162s
doubles
behaves like a match with second player serving
should first_team.second_player be serving0.25870s
tiebreak
singles
behaves like a match with first player serving
should first_player be serving0.30464s
doubles
behaves like a match with first player serving
should first_team.first_player be serving0.30387s
match scoring
one_eight_game
behaves like a match with one set
should have 1 set0.36061s
behaves like a match with eight game sets
should have 8 game set0.43500s
two_six_game_ten_point
behaves like a match with two sets
should have 2 sets0.42533s
behaves like a match with match tiebreak
should have match tiebreak0.41627s
behaves like a match with six game sets
should have 6 game set0.41300s
three_six_game
behaves like a match with three sets
should have 3 sets0.62273s
behaves like a match with six game sets
should have 6 game set0.66891s
match version
initial value
should have nil version initially0.02659s
after match started
should have number0.03290s
should raise exception when version is behind0.02794s
should raise exception when version is ahead0.02621s
when use valid version
behaves like a match with game in progress
should have game in progress0.04904s
#compute_team_winner
match complete
should have winner0.18240s
near winners
singles
one more set
first player
should have first player near winner0.17445s
should not have second player near winner0.15088s
second player
should not have first player near winner0.14969s
should have second player near winner0.16107s
one more game
first player
should have first player near winner0.24419s
should not have second player near winner0.25710s
second player
should not have first player near winner0.26657s
should have second player near winner0.26896s
set tiebreak
should have first player near tiebreak winner0.29635s
should have second player near tiebreak winner0.26899s
match tiebreak
should have first player near tiebreak winner0.28731s
should have second player near tiebreak winner0.29135s
should have first player near match winner0.30311s
should have second player near match winner0.27422s
doubles
one more set
first team needs one more set
should have first player near winner0.16528s
should not have second player near winner0.16041s
second player needs one more set
should not have first player near winner0.17161s
should have second player near winner0.16175s
one more game
first team needs one more game
should have first team near winner0.27498s
should not have second team near winner0.31518s
second team needs one more game
should not have first team near winner0.35782s
should have second team near winner0.29442s
MatchSet
should respond to #ordinal0.02092s
should respond to #scoring0.01687s
should validate that :ordinal cannot be empty/falsy0.01940s
should validate that :scoring cannot be empty/falsy0.02106s
should validate that :match cannot be empty/falsy0.01822s
should respond to #match0.01970s
should be valid initially0.02292s
should validate scoring value0.02218s
#destroy!
should remove set0.02824s
Match
doubles match
should validate that :first_team cannot be empty/falsy0.02842s
should validate that :second_team cannot be empty/falsy0.02978s
should validate existence of #first_team0.02926s
should validate existence of #second_team0.02883s
should validate that teams can't be the same0.02898s
should validate that servers can't be the same0.03180s
should validate that there are four different players0.03935s
behaves like match
should respond to #title0.04081s
should respond to #doubles0.02622s
should respond to #team_winner0.02625s
should respond to #scoring0.03140s
should validate that :scoring cannot be empty/falsy0.03015s
should respond to #first_team0.02572s
should respond to #second_team0.02784s
should respond to #first_player0.02539s
should respond to #second_player0.02457s
should validate that :title is unique0.03968s
should be valid initially0.03497s
should validate scoring value0.03452s
should generate a default title0.03383s
#destroy!
should remove match0.03797s
singles match
should validate that :first_player cannot be empty/falsy0.02002s
should validate that :second_player cannot be empty/falsy0.01619s
should validate that #first_team must exist0.02519s
should validate that #second team must exist0.01479s
should validate that players can't be the same0.01616s
behaves like match
should respond to #title0.01304s
should respond to #doubles0.01654s
should respond to #team_winner0.01293s
should respond to #scoring0.01477s
should validate that :scoring cannot be empty/falsy0.01897s
should respond to #first_team0.01422s
should respond to #second_team0.01267s
should respond to #first_player0.01394s
should respond to #second_player0.01634s
should validate that :title is unique0.02707s
should be valid initially0.01436s
should validate scoring value0.01739s
should generate a default title0.02002s
#destroy!
should remove match0.02294s
doubles to singles
validates that players are missing0.03102s
singles to doubles
validates that teams are missing0.01634s
match in progress
singles
should validate cannot change #scoring0.02928s
should validate cannot change #doubles0.03358s
should validate cannot change #second_player0.03503s
should validate cannot change #first_player0.06786s
should validate can change server0.04335s
start game
should validate cannot change server0.09108s
doubles
should validate cannot change #first_team0.05997s
should validate cannot change #second_team0.06321s
should validate cannot change #scoring0.07822s
should validate can change first server0.05592s
win first game
should validate cannot change first server0.09283s
should validate can change second server0.09934s
start second game
should validate cannot change second server0.09566s
Player
should respond to #name0.00121s
should validate that :name cannot be empty/falsy0.00287s
should validate that :name is unique0.01028s
#singles_team
should create singles team0.00617s
should destroy singles team0.01270s
#destroy!
should remove player0.00782s
when referenced by team
should not destroy player0.01683s
when referenced by match
should not destroy player0.01996s
SetGame
should respond to #ordinal0.02263s
should respond to #match_set0.02269s
should respond to #team_winner0.02177s
should respond to #tiebreaker0.02218s
should respond to #player_server0.02305s
should validate that :ordinal cannot be empty/falsy0.02916s
should validate that :match_set cannot be empty/falsy0.02574s
#destroy!
should remove set0.03238s
Team
should respond to #name0.00668s
should respond to #first_player0.00773s
should respond to #second_player0.00860s
should respond to #doubles0.00730s
should validate that :name is unique0.03050s
should validate that :first_player cannot be empty/falsy0.01282s
should be valid initially0.01154s
should validate presence of #second_player0.00902s
should validate existence of #first_player0.01002s
should validate existence of #second_player0.01040s
should validate to have two different players0.00911s
when already have a team with players
should validate duplicate players in same order0.01674s
should validate duplicate players in reverse order0.01817s
when in a match
when started
should validate cannot change #second_player0.04812s
should validate cannot change #first_player0.04980s
when not started
should validate can change #second_player0.03693s
should validate can change #first_player0.03521s
#destroy!
should remove team0.02185s
when referenced by match
should not remove team0.03396s
User
should respond to #username0.00268s
should respond to #password0.00263s
should respond to #password_confirmation0.00246s
should respond to #auth_token0.00241s
should validate that :username cannot be empty/falsy0.00699s
should validate that :username is unique0.01373s
should validate that :auth_token is unique0.01256s
#generate_authentication_token!
should generate a unique token0.01205s
should generate another token when duplicate0.01102s
V1::MatchScoreboardSerializer
empty match
doubles
should json response have values from match0.03982s
behaves like a doubles scoreboard
behaves like a doubles match
should be doubles0.04866s
behaves like a match
should include :id, :title, :doubles, :state, :scoring, and :winner0.03977s
behaves like a scoreboard
should include :sets, :actions, :errors, :servers, :version, and :near_winners0.04035s
singles
should json response have values from match0.02141s
behaves like a singles scoreboard
behaves like a singles match
should be singles0.02253s
behaves like a match
should include :id, :title, :doubles, :state, :scoring, and :winner0.02294s
behaves like a scoreboard
should include :sets, :actions, :errors, :servers, :version, and :near_winners0.02154s
complete match
doubles
should json response have values from match0.52147s
behaves like a doubles scoreboard
behaves like a doubles match
should be doubles0.69351s
behaves like a match
should include :id, :title, :doubles, :state, :scoring, and :winner0.62938s
behaves like a scoreboard
should include :sets, :actions, :errors, :servers, :version, and :near_winners0.57673s
singles
should json response have values from match0.54363s
behaves like a singles scoreboard
behaves like a singles match
should be singles0.60375s
behaves like a match
should include :id, :title, :doubles, :state, :scoring, and :winner0.94960s
behaves like a scoreboard
should include :sets, :actions, :errors, :servers, :version, and :near_winners0.52832s
near winners
doubles
should json response have values from match0.50609s
behaves like a doubles scoreboard
behaves like a doubles match
should be doubles0.57080s
behaves like a match
should include :id, :title, :doubles, :state, :scoring, and :winner0.58161s
behaves like a scoreboard
should include :sets, :actions, :errors, :servers, :version, and :near_winners0.56844s
singles
should json response have values from match0.52294s
behaves like a singles scoreboard
behaves like a singles match
should be singles0.50240s
behaves like a match
should include :id, :title, :doubles, :state, :scoring, and :winner0.53340s
behaves like a scoreboard
should include :sets, :actions, :errors, :servers, :version, and :near_winners0.55509s
V1::MatchSerializer
empty match
doubles
should json response have values from match0.03313s
behaves like a doubles match
should be doubles0.03238s
behaves like a match
should include :id, :title, :doubles, :state, :scoring, and :winner0.03310s
singles
should json response have values from match0.01906s
behaves like a singles match
should be singles0.01645s
behaves like a match
should include :id, :title, :doubles, :state, :scoring, and :winner0.01796s
complete match
doubles
should json response have values from match0.62187s
behaves like a doubles match
should be doubles0.53686s
behaves like a match
should include :id, :title, :doubles, :state, :scoring, and :winner0.51781s
singles
should json response have values from match0.66813s
behaves like a singles match
should be singles0.57373s
behaves like a match
should include :id, :title, :doubles, :state, :scoring, and :winner0.51775s
V1::PlayerSerializer
should have id0.00385s
should have name0.00402s
V1::SessionSerializer
should have id0.00632s
should have username0.00600s
should have token0.00642s
V1::TeamSerializer
should have id0.01445s
should have name0.01305s
should have first player id0.01300s
should have first player name0.01406s
should have second player id0.01338s
should have second player name0.01260s
V1::UserSerializer
should have id0.00673s
should have username0.00628s
should not have token0.00617s