100 Commits
Author SHA1 Message Date
Thibault Jouan 69423cdc2a Merge branch 'api-sound-create' 2015-05-06 06:28:41 +00:00
Thibault Jouan 54ae036adc Implement API sounds/create 2015-05-06 06:28:02 +00:00
Thibault Jouan b8d25dc918 Add API sounds/show view 2015-05-06 06:27:42 +00:00
Thibault Jouan 1d0071c4aa Check argument in File#file= 2015-05-06 06:26:43 +00:00
Thibault Jouan 4e66dc4522 Simplify CORS specs 2015-05-06 05:25:52 +00:00
Thibault Jouan 58a0bf4953 Merge branch 'accept-api-auth_token' 2015-05-06 03:16:10 +00:00
Thibault Jouan ba3c0380d0 Accept API authentication with keys token 2015-05-06 03:14:42 +00:00
Thibault Jouan 0f1f7106b2 Implement Key.authenticate 2015-05-06 03:14:42 +00:00
Thibault Jouan 78f79c4c34 Add API authenticated ping resource 2015-05-06 03:14:42 +00:00
Thibault Jouan d12c589e01 Test key model 2015-05-06 03:14:35 +00:00
Thibault Jouan 1588417559 Refactor response status expectations in API UAT 2015-05-06 03:14:30 +00:00
Thibault Jouan a2488980ed Test keys CRUD 2015-05-05 03:24:35 +00:00
Thibault Jouan 37ac6b769a Maintain DB schema to last version in test suite 2015-05-05 03:23:54 +00:00
Thibault Jouan 6e6de7407d Fix typo in keys/show view 2015-05-05 02:33:05 +00:00
Thibault Jouan 16a377566a Merge branch 'users-keys-token' 2015-05-05 02:32:04 +00:00
Thibault Jouan 763c9789ec Allow user to creates named auth keys with token 2015-05-05 02:31:30 +00:00
Thibault Jouan 7d1274cbb3 Bundle has_secure_token gem dependency 2015-05-05 02:31:30 +00:00
Thibault Jouan fedf565389 Accept SHA256 as identifier for API playlists/show 2015-05-05 02:27:29 +00:00
Thibault Jouan 3089462d97 Improve RSpec generated description (avoid should) 2015-05-05 02:26:51 +00:00
Thibault Jouan 3a54d8c0b9 Make rspec configuration more readable 2015-05-05 02:20:59 +00:00
Thibault Jouan 50c57e8bbd Ensure HEAD on API sounds/show behave correctly 2015-05-05 00:59:29 +00:00
Thibault Jouan 464a16e964 Fix API sounds/show action 2015-05-05 00:55:42 +00:00
Thibault Jouan 7b44e90814 Change API ping/pong to return a boolean 2015-05-05 00:03:57 +00:00
Thibault Jouan 61d1548b59 Prevent rails from adding error div in form helpers 2015-05-04 23:01:37 +00:00
Thibault Jouan e647aa257f Configure standard rails javascript behavior 2015-05-04 23:01:37 +00:00
Thibault Jouan 780dbc8942 Configure standard sprockets usage in rails 2015-05-04 23:01:37 +00:00
Thibault Jouan ef0b9053f1 Return new location in API playlists create 2015-05-04 03:41:28 +00:00
Thibault Jouan 4f11cc63e2 Accept matching any HTTP status in json UAT helper 2015-05-04 02:19:44 +00:00
Thibault Jouan 223a6e7a85 Handle save error in API playlists/update 2015-05-04 02:14:37 +00:00
Thibault Jouan 5f993e4bd3 Return errors in API playlists/create 2015-05-04 01:01:37 +00:00
Thibault Jouan 8f8cdaec79 Return 422 when API playlists cannot be saved 2015-05-04 00:59:00 +00:00
Thibault Jouan dcfe1b1b79 Fix typo in API playlists specs 2015-05-04 00:58:48 +00:00
Thibault Jouan 77be82a19f Return 201 Created in API playlists/create 2015-05-04 00:54:17 +00:00
Thibault Jouan 7a28b01287 Refactor playlists views 2015-05-04 00:53:08 +00:00
Thibault Jouan 562b57a900 Check for success instead of 200 in json UAT helper 2015-05-04 00:52:21 +00:00
Thibault Jouan 689fe2f4dd Implement API playlists/destroy 2015-05-03 23:35:53 +00:00
Thibault Jouan d03007c99f Implement API playlists/update 2015-05-03 23:23:41 +00:00
Thibault Jouan 317c2b687f Refactor UAT helpers inclusion in specs 2015-05-03 22:58:05 +00:00
Thibault Jouan e940b3f246 Refactor tracks specs 2015-05-03 22:52:26 +00:00
Thibault Jouan 79c4aef669 Fix coding standards in specs 2015-05-03 22:48:34 +00:00
Thibault Jouan 342f9c5aa4 Refactor API CORS specs 2015-05-03 22:46:12 +00:00
Thibault Jouan 6c0736da74 Allow unauthenticated requests to API ping 2015-05-03 22:42:15 +00:00
Thibault Jouan 94f62bcf4e Fix API sign in spec filename 2015-05-03 22:40:31 +00:00
Thibault Jouan 6964d923ca Exclude gems builded by bundler in rspec backtraces 2015-05-03 20:40:21 +00:00
Thibault Jouan 9c79c504c9 Merge branch 'api-errors-handling' 2015-05-03 20:27:55 +00:00
Thibault Jouan db7de0c038 Accept JSON requests more liberally in API 2015-05-03 20:15:48 +00:00
Thibault Jouan eb62ab96ff Improve status code expectation in json UAT helper 2015-05-03 20:14:08 +00:00
Thibault Jouan abb20c89ad Prevent JSON filter usage for CORS API requests 2015-05-03 19:52:54 +00:00
Thibault Jouan b642666728 Merge branch 'api-json-root_revert'
Revert default rails behavior for JSON root in API responses, and tune
index views to play nicely with Ember.js DS.RESTAdapter defaults.
2015-05-03 19:06:13 +00:00
Thibault Jouan 5a1082e93f Refactor API rabl views 2015-05-03 19:05:41 +00:00
Thibault Jouan bdfd0edff0 Include roots for resources in rabl index views 2015-05-03 19:03:16 +00:00
Thibault Jouan 4e0c422a6f Remove rabl initializer 2015-05-03 18:37:06 +00:00
Thibault Jouan 9a81c434d3 Restore default value for AR include_root_in_json 2015-05-03 18:36:41 +00:00
Thibault Jouan a0f73fae8d Fix test script configured for travis CI 2015-05-03 18:18:05 +00:00
Thibault Jouan fe22556f93 Refactor API JSON filter 2015-05-03 18:11:29 +00:00
Thibault Jouan 3cb48b524b Update rb-kqueue dependency to last version 2015-05-03 02:43:31 +00:00
Thibault Jouan 78173d1f89 Add producer-rails configuration 2015-05-02 13:01:15 +00:00
Thibault Jouan 8b226998a4 Refactor controllers 2015-05-02 00:24:30 +00:00
Thibault Jouan 6001cd2e79 Implement tracks/show in AP 2015-05-02 00:11:52 +00:00
Thibault Jouan aaca5bf1d9 Remove .html from HAML views paths (except layout) 2015-05-02 00:06:15 +00:00
Thibault Jouan b543afbfff Merge branch 'api-error-handling' 2015-05-01 22:17:44 +00:00
Thibault Jouan 57ea6ca0df Ensure errors are always returned in JSON in API 2015-05-01 22:17:23 +00:00
Thibault Jouan 5b9d36cb39 Ensure AR not found errors are handled in API 2015-05-01 22:15:30 +00:00
Thibault Jouan cd73a588b0 Handle 404 not found error in API 2015-05-01 20:07:18 +00:00
Thibault Jouan b3cfa88bb9 Implement playlists/show in API 2015-05-01 20:06:20 +00:00
Thibault Jouan 35be3e21b6 Improve guard config
* Watch changes on controllers;
* Simplify pattern for support watch;
* Use more specific patterns for views;
* Remove deprecated rule on lib directory.
2015-05-01 18:05:00 +00:00
Thibault Jouan 0df652ffd8 Configure guard to watch changes on API views 2015-05-01 17:54:34 +00:00
Thibault Jouan 8874d3dbcc Remove deprecated rules from guard config 2015-05-01 17:54:15 +00:00
Thibault Jouan 8e3955a97b Refuse non-JSON queries on API 2015-05-01 17:47:44 +00:00
Thibault Jouan 063376a285 Refactor JSON responses expectations in API specs 2015-05-01 17:26:49 +00:00
Thibault Jouan d1551c62b0 Fix typo in playlists API specs 2015-05-01 17:25:51 +00:00
Thibault Jouan 2ed16eac25 Fix typo in API ping spec 2015-05-01 17:25:18 +00:00
Thibault Jouan 86bec28457 Improve route changes handling under guard/spork 2015-05-01 17:19:39 +00:00
Thibault Jouan f49f04b650 Clean up route configuration
* Avoid old ruby hash syntax;
* Sort rules;
* Refactor arguments to :only options.
2015-05-01 17:04:50 +00:00
Thibault Jouan c0b2621b2f Implement ping/pong endpoint in API 2015-05-01 16:56:55 +00:00
Thibault Jouan cbacdd9fc1 Fix coding standards in specs 2015-05-01 15:57:26 +00:00
Thibault Jouan c1393b8f8f Refactor API CORS specs 2015-05-01 15:42:24 +00:00
Thibault Jouan c1477a2e89 Remove an expectation in tracks player spec
sounds/show is already tested in sounds feature specs.
2015-05-01 15:25:31 +00:00
Thibault Jouan 00fe9bf258 Refactor factory girl usage in specs 2015-05-01 15:21:41 +00:00
Thibault Jouan 3247dd0934 Merge branch 'controllers-spec-remove' 2015-05-01 15:17:09 +00:00
Thibault Jouan 9c9fdcf4da Refactor AcceptanceHelpers 2015-05-01 15:17:03 +00:00
Thibault Jouan 896fe661bd Remove controllers spec already tested elsewhere 2015-05-01 15:16:59 +00:00
Thibault Jouan 5e1757aff9 Improve tracks CRUD
* Add index, edit and update action;
* Add _form partial;
* Add link to tracks/index in nav;
* Refactor specs.
2015-05-01 12:09:29 +00:00
Thibault Jouan e1c8a6038d Simplify playlists CRUD specs 2015-05-01 11:40:11 +00:00
Thibault Jouan 9d37916e17 Configure rspec to include factory girl helpers 2015-05-01 11:31:25 +00:00
Thibault Jouan 94704af113 Remove rspec config for `mock_with' (default) 2015-05-01 11:31:03 +00:00
Thibault Jouan 454f344259 Rename UserIntegrationHelpers as AcceptanceHelpers 2015-05-01 11:27:45 +00:00
Thibault Jouan 737c6b03e4 Organize feature specs in sub directories 2015-05-01 11:18:41 +00:00
Thibault Jouan 10d4da2822 Remove specs for haml views 2015-05-01 11:09:28 +00:00
Thibault Jouan b25fbaac5e Remove last playlists and tracks from home 2015-05-01 11:03:34 +00:00
Thibault Jouan 4b0f4d391f Implement user sign out (destroy current session) 2015-05-01 10:55:32 +00:00
Thibault Jouan 7ecf47a0f9 Workaround broken scrolling on travis CI 2015-05-01 10:38:33 +00:00
Thibault Jouan e2c71bb964 Merge branch 'travis-build-fix' 2015-05-01 10:29:30 +00:00
Thibault Jouan 90da5e4490 Configure travis CI to create initial directories 2015-05-01 10:28:55 +00:00
Thibault Jouan d4d0382e4c Remove `sounds_path' modification in spec_helper
Since e90bb01c, we already configure a different path for test
environment from application configuration.
2015-05-01 10:26:04 +00:00
Thibault Jouan 62ea95af56 Fix travis CI script configuration 2015-05-01 10:24:24 +00:00
Thibault Jouan a38da387d2 Configure secret_key_base for travis CI 2015-05-01 10:22:57 +00:00
Thibault Jouan 14e255eeb0 Configure database for travis CI 2015-05-01 10:00:47 +00:00
Thibault Jouan b1a6248004 Enable travis CI fast finish 2015-05-01 10:00:47 +00:00
Thibault Jouan 2f44a2265e Add navigation in layout header as a list 2015-04-30 13:54:02 +00:00