aboutsummaryrefslogtreecommitdiffstats
path: root/test/service/mirror_service_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Added rubocop / codeclimate config and fixed current offenses (#45)Cristian Bica2017-07-141-1/+1
|
* Tests: Dir.mktmpdir neatly wraps up tmpdir + joinJeremy Daer2017-07-091-3/+2
|
* Configure services that reference other servicesJeremy Daer2017-07-081-11/+16
| | | | | | | | * Move service configuration from the Engine to Service * Delegate configuration mechanics to internal Service::Configurator * Delegate service building to the concrete Service classes, allowing them to configure composed services. * Implement for the Mirror service.
* Mirror: explicit primary service and list of mirrorsJeremy Daer2017-07-081-5/+13
| | | | | | | | | | | | Pass separate primary service and list of mirrors rather than treating the first of the services list as the primary. Nice fit for keyword args, and something we've long wanted in the equivalent Basecamp file repository. Upload returns the results of the underlying service uploads rather than the io.rewind result. Rewind before uploading rather than afterward, and demonstrate that behavior with a test. Test that more than one mirror works.
* Helper methods are privateDavid Heinemeier Hansson2017-07-061-4/+5
|
* Flesh out mirror testsGeorge Claghorn2017-07-061-7/+26
|
* Rename from Site to Service now that we're called Active StorageDavid Heinemeier Hansson2017-07-061-0/+30