diff options
| author | mo khan <mo@mokhan.ca> | 2016-12-03 21:15:03 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2016-12-03 21:15:03 -0700 |
| commit | e4738829abdcf571f9a2d2437ebc35164ea126c3 (patch) | |
| tree | d3df35fa9f90aec66c2ca75b3fb591a080a82a76 /spec | |
| parent | 4c233d14d9037b028b9735f520b542ad6dfc2b00 (diff) | |
include the username.
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/controllers/api/sessions_controller_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/controllers/api/sessions_controller_spec.rb b/spec/controllers/api/sessions_controller_spec.rb index 2832685..c7575d1 100644 --- a/spec/controllers/api/sessions_controller_spec.rb +++ b/spec/controllers/api/sessions_controller_spec.rb @@ -9,6 +9,7 @@ describe Api::SessionsController do json = JSON.parse(response.body) expect(json['authentication_token']).to be_present + expect(json['username']).to eql(user.username) end end end |
