summaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-09-22 12:03:38 -0700
committerelijah <elijah@riseup.net>2015-09-22 12:03:38 -0700
commitea71f09ee23dbc080dd29adf2c3b8fa61f848c22 (patch)
tree419db918544e034481608b5ac5bbd65b115f6355 /test/unit
parent3e8771097ab7392560fdf07a85c011c23098fd1e (diff)
parentbdefeafe150123b7f186dda13366e7a1d7dc53ed (diff)
Merge branch 'bugfix/find_by_nil' of https://github.com/azul/leap_web into develop
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/user_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb
index b3c831b..c301923 100644
--- a/test/unit/user_test.rb
+++ b/test/unit/user_test.rb
@@ -7,6 +7,11 @@ class UserTest < ActiveSupport::TestCase
@user = FactoryGirl.build(:user)
end
+ test "don't find a user with login nil" do
+ @user.save
+ assert_nil User.find_by_login(nil)
+ end
+
test "design docs in database are authorative" do
assert !User.design_doc.auto_update,
"Automatic update of design docs should be disabled"