summaryrefslogtreecommitdiff
path: root/users/test/integration/api/signup_test.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-02-08 12:29:08 +0100
committerAzul <azul@leap.se>2014-02-10 14:26:30 +0100
commit758b9a3c30a73fd985943fb7a887f0373be3a833 (patch)
tree935bf639bb17ea034d7864205d087f6cd3497175 /users/test/integration/api/signup_test.rb
parent67f17e65b9e9e8ad2991b9c4002dba5203baa77f (diff)
split up and expand account integration test
Diffstat (limited to 'users/test/integration/api/signup_test.rb')
-rw-r--r--users/test/integration/api/signup_test.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/users/test/integration/api/signup_test.rb b/users/test/integration/api/signup_test.rb
new file mode 100644
index 0000000..236c547
--- /dev/null
+++ b/users/test/integration/api/signup_test.rb
@@ -0,0 +1,20 @@
+require 'test_helper'
+require_relative 'srp_test'
+
+class SignupTest < SrpTest
+
+ setup do
+ register_user
+ end
+
+ test "signup response" do
+ assert_json_response :login => @login, :ok => true
+ assert last_response.successful?
+ end
+
+ test "signup creates user" do
+ assert @user
+ assert_equal @login, @user.login
+ end
+end
+