Grzegorz Bizon
917effb737
Make sure that token ensure_*
method always returns a token
2015-12-11 14:39:51 +01:00
Grzegorz Bizon
30e29bb924
Add specs for TokenAuthenticatable
concern
2015-12-11 10:39:39 +01:00
Douwe Maan
1e8d703a85
Tag model specs
2015-12-09 10:50:51 +01:00
Jose Corcuera
b9df1a6355
Strip attributes for Milestone and Issuable. #3428
2015-11-26 10:16:50 -05:00
Zeger-Jan van de Weg
94a788f66d
Only accept open issues and merge requests
2015-10-16 09:59:32 +02:00
Douwe Maan
b0164771ec
Simplify code around (cross)-references
2015-10-12 11:54:46 +02:00
Yorick Peterse
03417456f0
Revamp finding projects by namespaces
...
By using a JOIN we can remove the need for using 2 separate queries to
find a project by its namespace. Combined with an index (only needed for
PostgreSQL) this reduces the query time from ~245 ms (~520 ms for the
first call) down to roughly 10 ms (~15 ms for the first call).
2015-10-08 14:35:32 +02:00
Yorick Peterse
1190d0ab3d
Added concern for case-insensitive WHERE queries
...
On PostgreSQL these queries use LOWER(...) to compare columns and
values. For MySQL a regular WHERE is performed as MySQL is already
case-insensitive.
2015-10-07 23:32:14 +02:00
Jungkook Park
e4ac2d582c
add repository field to issue hook data
...
add a test for to_hook_data of issue model
update CHANGELOG
2015-09-17 05:33:37 +09:00
Robert Speicher
f3d4767d0c
Rename notice_added_references
to create_new_cross_references!
2015-07-13 21:31:16 -04:00
Robert Speicher
e4c698fd5c
Refactor Mentionable#notice_added_references
...
It now accounts for models that have changed but have already been
persisted, such as when called from an UpdateService.
Closes #1773
2015-07-13 21:31:00 -04:00
Robert Speicher
2120e2dd95
Replace remaining references to Note.create_cross_reference_note
2015-06-22 12:13:46 +02:00
Robert Speicher
5a9ede4721
Update mock and stub syntax for specs
2015-06-22 12:13:46 +02:00
Robert Speicher
47251b85e0
ensure_length_of -> validate_length_of
2015-06-10 01:31:26 -04:00
Robert Speicher
23954b0f77
Correctly remove already-mentioned commits for cross references
...
Fixes #1778
2015-06-08 18:13:14 -04:00
Jeroen van Baarsen
0c4a70a306
Updated rspec to rspec 3.x syntax
...
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2015-02-12 19:17:35 +01:00
Dmitriy Zaporozhets
fd17ba9ffc
Mentioned users are not limited by project scope any more
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-10-30 13:26:45 +02:00
Dmitriy Zaporozhets
cce80d04fe
Remove author_id_of_changes from spec
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-03-25 14:02:55 +02:00
skv
d89527839e
fix most of warnings
2013-12-15 00:05:10 +04:00
Dmitriy Zaporozhets
a73e068c06
Fixing tests after adding iid for issues/mr
2013-08-20 16:56:05 +03:00
Andrew8xx8
f97296597c
Issuable consern uses StateMachine now
2013-02-18 14:43:49 +04:00
Dmitriy Zaporozhets
e65731bb7e
Add concerns to autoload
2013-01-03 09:12:24 +02:00