Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-07-14Move coverage-related setup back to spec_helperRobert Speicher
These tools must be loaded before our regular Rails environment.
2015-07-01Fix ApplicationHelper specsRobert Speicher
There were several specs that were failing when run by themselves. - Use the `helper` object, as per RSpec 3 standards - Use `assign` to assign instance variables that helpers expect - Add `StubConfiguration` support module
2015-07-01Add spec/support/factory_girlRobert Speicher
Just for consistency with our Capybara, DatabaseCleaner, WebMock, etc. setups.
2015-06-22Update email_spec gemRobert Speicher
This fixes spec/mailers/notify_spec Also only require email_spec in the one place it's used
2015-06-10Fix shoulda-matchers requireRobert Speicher
2015-06-10Add spec/support files for WebMock and test coverageRobert Speicher
2015-04-26Move RSpec setup for Capybara to its own support fileRobert Speicher
2015-03-27Add ActiveRecord::Migration.maintain_test_schema! to spec_helperRobert Speicher
New in Rails 4.1, this eliminates spec failures due to forgetting to run `db:test:prepare`.
2015-02-12Updated rspec to rspec 3.x syntaxJeroen van Baarsen
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2015-02-12Started on the rspec upgradeJeroen van Baarsen
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2014-10-01Try wear_merged! without argumentDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-09-19Refactor coverage tools usageDmitriy Zaporozhets
rspec spec # no coverage generated SIMPLECOV=true rspec spec # generate coverage locally into ./coverage COVERALLS=true rspec spec # generate and send coverage data to coveralls.io Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-09-19Ask coveralls to merge resultsDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-07-31Recreate tmp/tests on each test runDmitriy Zaporozhets
2014-06-17Remove rails observers from applicationDmitriy Zaporozhets
2014-06-06Disable fixturesJeroen van Baarsen
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2014-03-24Remove SporkRobert Speicher
2013-07-18Merge Request on forked projectsIzaak Alpert
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
2013-04-11Specs refactoring to reduce test time. Disabled observers by default for specsDmitriy Zaporozhets
2013-04-01Project.repository should never be nil so you can call repository.exists? or ↵Dmitriy Zaporozhets
repository.empty? Also specify separate project factory for project with filled repo
2013-03-26Spork support addedAndrew8xx8
2013-03-21Fix travis failure randomly, because Capybara.default_wait_time is too short.Sato Hiroyuki
2013-03-10add coveralls.io to travis buildsDmitriy Zaporozhets
2013-02-21improve selectors to pass capybara 2.0Dmitriy Zaporozhets
2013-02-21Add LoginHelpers to feature typeDmitriy Zaporozhets
2013-02-11No gitolite in project any moreDmitriy Zaporozhets
2013-02-04remove gitolite stubDmitriy Zaporozhets
2013-01-09sidekiq with green testsDmitriy Zaporozhets
2013-01-08organize simplecovDmitriy Zaporozhets
2013-01-02Fix api specs. Use id instead pathDmitriy Zaporozhets
2013-01-02Fix few bugs and tests after refactoring ownership logicDmitriy Zaporozhets
2012-12-20Update uses of Gitolite.config.foo settingsRiyad Preukschas
2012-11-21Increased test coverageDmitriy Zaporozhets
2012-11-16Use poltergeist instaead of capybara-webkitDmitriy Zaporozhets
2012-09-27Add TreeController and specRobert Speicher
2012-08-29All specs and features currently passing with FactoryGirlRobert Speicher
2012-08-29Remove spec/factory and spec/factoriesRobert Speicher
2012-08-29Use similar interface to access gitoliterandx
Simplified gitolite handle logic Stubn over monkeypatch Stub only specific methods in Gitlab:Gitolite Moved grach auth to lib added specs for keys observer removes SshKey role
2012-08-25Add a simple `api` method to ApiHelpers, replacing api_prefixRobert Speicher
See docs for usage
2012-08-25Cleanup spec/support folder and spec/spec_helperRobert Speicher
Changes: * Move spec/monkeypatch to spec/support * Remove unused support/shared_examples * Move support/api to support/api_helpers to match module name * Move support/login to support/login_helpers to match module name * Move API specs to requests/api (convention over configuration) * Remove unused support/js_patch * Simplify login_as helper * Move DatabaseCleaner stuff to its own support file * Remove unnecessary configuration and requires from spec_helper
2012-08-23Don't run SimpleCov on TravisRobert Speicher
2012-08-19Headless gem addedrandx
2012-08-13rspec to capybara-webkit. simplercov now use cucumberDmitriy Zaporozhets
2012-08-11Fully embrace Ruby 1.9 hash syntaxRobert Speicher
Didn't bother with files in db/, config/, or features/
2012-06-28add users APINihad Abbasov
2012-06-20Disable observers in specs. Enable only when observer is under test.Robb Kidd
Used the built-in observer enable/disable feature in ActiveModel[1]. ActiveRecord::Base includes ActiveModel::Observing which provides this behavior. Simple wraps to enable the observer under test were added to the specs for: ActivityObserver, IssueObserver, Admin::Users and Issues. The spec for Project.last_activity was refactored to separate the tests for #last_activity and #last_activity_date. Each had doubles added to isolate the spec from the hidden dependency on the ActivityObserver action to create an Event for the project when an Issue is created. This ActivityObserver behavior is already tested by its spec. [1] http://api.rubyonrails.org/classes/ActiveModel/ObserverArray.html
2012-05-16Add specs for Notify ActionMailer emails.Robb Kidd
Covers new user, new issue and wall note emails. Depends on email_spec (https://github.com/bmabey/email-spec/) for friendly matchers.
2011-12-14Added web hooks functionalityAriejan de Vroom
This commit includes: * Projects can have zero or more WebHooks. * The PostReceive job will ask a project to execute any web hooks defined for that project. * WebHook has a URL, we post Github-compatible JSON to that URL. * Failure to execute a WebHook will be silently ignored.
2011-11-16update gems in order to make it work with ruby 1.9.3Nihad Abbasov
2011-10-26clean-up codeNihad Abbasov
* Remove trailing whitespace * Converts hard-tabs into two-space soft-tabs * Remove consecutive blank lines