summaryrefslogtreecommitdiff
path: root/spec/models/key_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use `Gitlab.config.gitlab.host` over `'localhost'`fix-tests-for-different-hostLin Jen-Shin2016-11-181-1/+1
| | | | | | | | This would fix long standing failures running tests on my development machine, which set `Gitlab.config.gitlab.host` to another host because it's not my local computer. Now I finally cannot withstand it and decided to fix them once and for all.
* Remove instance vars from key model testsSemyon Pupkov2016-11-161-6/+6
|
* Use setter for key instead AR callbackSemyon Pupkov2016-11-161-0/+10
| | | | ref: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6763
* Remove empty describe block on key spec modelSemyon Pupkov2016-10-111-3/+0
|
* adds second batch of tests changed to active tenseactive-tense-test-coveragetiagonbotelho2016-08-091-2/+2
|
* Tidy the key spec and fix failing user specKeith Pope2016-08-021-1/+1
|
* Add simple identifier to public SSH keysKeith Pope2016-08-021-2/+3
|
* Remove Duplicated keys add UNIQUE index to fingerprint18697-uniqueness-key-validationPaco Guzman2016-06-201-1/+1
|
* Remove the annotate gem and delete old annotationsJeroen van Baarsen2016-05-091-15/+0
| | | | | | | | | In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382
* Fixed Rubocop offensesGabriel Mazetto2015-12-151-1/+1
|
* Tag model specsDouwe Maan2015-12-091-1/+1
|
* Only publish ssh key-type and keyZeger-Jan van de Weg2015-08-041-0/+7
|
* Add error message for SSH key linebreaksNikita Verkhovin2015-07-121-1/+7
|
* ensure_length_of -> validate_length_ofRobert Speicher2015-06-101-2/+2
|
* Re-annotate modelsStan Hu2015-05-031-0/+1
|
* Remove the invalid key factoriesRobert Speicher2015-04-111-4/+9
| | | | They're only used once each, and they're easy to build in-place.
* Updated rspec to rspec 3.x syntaxJeroen van Baarsen2015-02-121-14/+14
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Remove mass assgnment specsDmitriy Zaporozhets2014-06-261-2/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Re-annotate modelsDmitriy Zaporozhets2014-04-091-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove KeysObserverDmitriy Zaporozhets2014-04-021-0/+14
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* ReannotateDmitriy Zaporozhets2013-08-211-8/+8
|
* Validate fingerprint uniquenessJacob Vosmaer2013-07-171-1/+8
|
* Remove unnecessary user from testJacob Vosmaer2013-07-171-3/+1
|
* AnnotatedDmitriy Zaporozhets2013-06-191-3/+3
|
* Model specs for DeployKeysDmitriy Zaporozhets2013-05-061-24/+6
|
* Tests to validate that invalid keys are rejectedJaakko Kantojärvi2013-02-171-1/+5
|
* fix deploy key specDmitriy Zaporozhets2013-02-071-2/+2
|
* Annotated. schema updatedDmitriy Zaporozhets2012-11-191-3/+3
|
* Remove backward compatibility of factories.Vincent Bonmalais2012-11-131-2/+2
|
* AnnotatedDmitriy Zaporozhets2012-10-091-0/+14
|
* Merge pull request #1617 from dosire/reject-ssh-keys-that-break-gitoliteValeriy Sizov2012-10-031-0/+12
|\ | | | | Reject ssh keys that break gitolite
| * Reject ssh keys that break gitolite.Sytse Sijbrandij2012-09-241-0/+12
| | | | | | | | | | | | Failing test. Working check.
* | set activerecord whitelist_attributes to trueNihad Abbasov2012-09-261-0/+5
|/
* Add more coverage for model validations and associationsRobert Speicher2012-08-291-1/+4
|
* Remove annotations from specsRobert Speicher2012-08-291-14/+0
|
* Simple model spec changes made possible by new factoriesRobert Speicher2012-08-281-11/+6
|
* Reannotatedrandx2012-06-261-5/+5
|
* Merge branch 'deploy_keys_nonunique' of https://github.com/miks/gitlabhq ↵Ariejan de Vroom2012-03-011-2/+34
| | | | | | | | | | into miks-deploy_keys_nonunique Added/fixed specs Update spec/factory to allow Factory#new without opts Conflicts: app/models/key.rb
* fixed commit commentingDmitriy Zaporozhets2012-01-211-1/+2
|
* Specs for deploy_keys updatedmiks2011-12-311-1/+1
|
* clean-up codeNihad Abbasov2011-10-261-1/+1
| | | | | | * Remove trailing whitespace * Converts hard-tabs into two-space soft-tabs * Remove consecutive blank lines
* init commitgitlabhq2011-10-091-0/+32