blackst0ne
27c95364b5
Replace '.team << [user, role]' with 'add_role(user)' in specs
2017-12-22 19:18:28 +11:00
Rémy Coutable
4af9d592c5
Replace factory_girl_rails with factory_bot_rails
...
I've followed the [upgrade guide](https://github.com/thoughtbot/factory_bot/blob/4-9-0-stable/UPGRADE_FROM_FACTORY_GIRL.md ) and ran these two commands:
```
grep -e FactoryGirl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|FactoryGirl|FactoryBot|"
grep -e factory_girl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|factory_girl|factory_bot|"
```
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-12-14 15:01:55 +01:00
Sean McGivern
149528f472
Support references to group milestones
...
Group milestones can only be referred to by name, not IID. They also do not
support cross-project references.
2017-08-07 11:55:00 +01:00
Robert Speicher
aef345024f
Use `:empty_project` where possible in top-level feature specs
2017-04-20 17:30:55 -04:00
Douwe Maan
dfbccdfc1b
Fix spec
2017-02-24 08:13:57 -06:00
Douwe Maan
ad640bc5f9
Use Namespace#full_path instead of #path where appropriate
2017-02-23 17:55:01 -06:00
Timothy Andrew
e6b1d1669b
Hook up the updated `WikiLinkFilter` to the wiki controllers.
...
- Need to pass in a `page_slug` to the filter, so it can rewrite based
on the current page (all links are rewritten to the level of the app root).
- The earlier `markdown_preview` endpoint was at the level of the wiki.
We need to know the current page (for rewriting, as above), so this
commit moves the endpoint to the level of a wiki page.
- Fix all tests
2016-06-09 10:15:01 +05:30
Alejandro Rodríguez
077f9a4eee
Implementing special GitLab markdown reference for milestones
...
Using the syntax proposed in #13829 [project_reference]%(milestone_id | milestone_name)
to get a link to the referred milestone.
2016-04-20 22:12:43 -03:00
Yorick Peterse
84b0ab7766
Added & use Gitlab::Routing for URL helpers
...
Rails' "url_helpers" method creates an anonymous Module (which a bunch
of methods) on every call. By caching the output of this method in a
dedicated method we can shave off about 10 seconds of loading time for
an issue with around 200 comments.
2016-04-01 11:13:48 +02:00
Douglas Barbosa Alexandre
a8c836c371
Add tests for the wiki pipeline
2016-01-14 12:09:31 -02:00
Douwe Maan
989131c530
Render milestone links as references
2015-12-24 14:43:07 +01:00
Douwe Maan
f905fd239c
Use URL helpers in specs
2015-12-03 14:00:09 +01:00
Robert Speicher
ca8d225307
Update MarkdownFeature support class
...
- Memoize variables a bit more cleanly
- Add user to project's team
2015-09-01 18:09:52 -04:00
Douwe Maan
afb765ad9e
Fix markdown specs again. Apparently development and test behave differently.
2015-08-20 15:41:34 -07:00
Douwe Maan
99ef8c8159
Fix markdown specs.
2015-08-20 15:37:43 -07:00
Douwe Maan
54b04f1c5b
Add fixture_file helper.
2015-08-20 12:41:47 -07:00
Robert Speicher
fb6dc1f07d
Add `Group#add_*` convenience methods
...
Encapsulates the logic for `Gitlab::Access::WHATEVER` levels.
2015-08-07 00:20:02 -04:00
Robert Speicher
8c957b54f5
Fix setup/teardown for Markdown feature spec
...
Prior, CI seemed to be freezing after running these specs.
2015-07-29 00:06:52 -04:00
Robert Speicher
590fca0f06
Move MarkdownFeature to its own support file
...
This file's about to get much bigger and this removes some of the extra
noise.
2015-07-28 18:56:26 -04:00