diff options
author | Azul <azul@riseup.net> | 2016-03-24 09:08:46 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-05-02 08:24:41 -0300 |
commit | 6d9bd6b966ec2370b7f8659b0810b03c5d1568aa (patch) | |
tree | 22ae34aa0a2bc2c04f13ff626365a1f162d34585 /test/integration/api/token_auth_test.rb | |
parent | 0ac511a31a6652ab00bbc765079b1c56128b191f (diff) |
upgrade: unique test names
Rails 4.2 runs all tests mixed together. So unit tests and integration tests
may not have conflicting names.
Diffstat (limited to 'test/integration/api/token_auth_test.rb')
-rw-r--r-- | test/integration/api/token_auth_test.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/integration/api/token_auth_test.rb b/test/integration/api/token_auth_test.rb new file mode 100644 index 0000000..3b83f23 --- /dev/null +++ b/test/integration/api/token_auth_test.rb @@ -0,0 +1,16 @@ +require_relative '../../test_helper' +require_relative 'srp_test' + +class TokenAuthTest < SrpTest + + setup do + register_user + end + + test "stores token SHA512 encoded" do + authenticate + token = server_auth['token'] + assert Token.find(Digest::SHA512.hexdigest(token)) + end + +end |