summaryrefslogtreecommitdiff
path: root/spec/factories_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Replace factory_girl_rails with factory_bot_railsrc/use-factory_bot_railsRémy Coutable2017-12-141-1/+1
| | | | | | | | | | | 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>
* Lint our factories creation in addition to their build33139-lint-our-factoriesRémy Coutable2017-06-021-4/+10
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* adds second batch of tests changed to active tenseactive-tense-test-coveragetiagonbotelho2016-08-091-1/+1
|
* Enable RSpec/NotToNot cop and auto-correct offensesrs-rubocop-nottonotRobert Speicher2016-05-241-1/+1
| | | | Also removes the note from the development/testing.md guide
* Enable Style/SpaceAroundKeyword cop and fix offensesRobert Speicher2016-05-231-1/+1
|
* Add support for not Active Record based factoriesGrzegorz Bizon2016-03-301-4/+12
|
* Remove the invalid key factoriesRobert Speicher2015-04-111-6/+0
| | | | 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-1/+1
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Style changes from review with @randxIzaak Alpert2013-07-171-3/+2
| | | | | | -Some changes around calling origional methods for !for_fork? merge requests. Other changes to follow Change-Id: I009c716ce2475b9efa3fd07aee9215fca7a1c150
* MR on fork: Email fixes, style fixesIzaak Alpert2013-07-171-1/+0
| | | | | | | | | -Removed many extra spaces I added -Fixed email templates to be consistent/better looking GITLAB-894, GITLAB-895, (GITLAB-858) Change-Id: I35c1a8e0e22af7de26d54e5c3da987fa7bb3921e
* Merge Request on forked projectsIzaak Alpert2013-07-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The good: - You can do a merge request for a forked commit and it will merge properly (i.e. it does work). - Push events take into account merge requests on forked projects - Tests around merge_actions now present, spinach, and other rspec tests - Satellites now clean themselves up rather then recreate The questionable: - Events only know about target projects - Project's merge requests only hold on to MR's where they are the target - All operations performed in the satellite The bad: - Duplication between project's repositories and satellites (e.g. commits_between) (for reference: http://feedback.gitlab.com/forums/176466-general/suggestions/3456722-merge-requests-between-projects-repos) Fixes: Make test repos/satellites only create when needed -Spinach/Rspec now only initialize test directory, and setup stubs (things that are relatively cheap) -project_with_code, source_project_with_code, and target_project_with_code now create/destroy their repos individually -fixed remote removal -How to merge renders properly -Update emails to show project/branches -Edit MR doesn't set target branch -Fix some failures on editing/creating merge requests, added a test -Added back a test around merge request observer -Clean up project_transfer_spec, Remove duplicate enable/disable observers -Ensure satellite lock files are cleaned up, Attempted to add some testing around these as well -Signifant speed ups for tests -Update formatting ordering in notes_on_merge_requests -Remove wiki schema update Fixes for search/search results -Search results was using by_project for a list of projects, updated this to use in_projects -updated search results to reference the correct (target) project -udpated search results to print both sides of the merge request Change-Id: I19407990a0950945cc95d62089cbcc6262dab1a8
* Tests to validate that invalid keys are rejectedJaakko Kantojärvi2013-02-171-1/+4
|
* Factories spec refactoring after #1616Valeriy Sizov2012-10-031-1/+3
|
* Don't test if invalid key is valid.Marin Jankovski2012-09-251-0/+1
|
* refactor factory specsNihad Abbasov2012-09-061-86/+4
|
* Add deploy_key and personal_key factoriesRobert Speicher2012-08-281-0/+8
|
* All specs and features currently passing with FactoryGirlRobert Speicher2012-08-281-0/+83