diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-27 16:58:23 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-27 16:59:08 +0200 |
commit | 4f9b7432dd4d323ac6cc4efceeae2efaffe62e7d (patch) | |
tree | acae9e59bd6971885f7cb7b7ed45c4c9d1af4fca /spec/controllers | |
parent | 3f75f522856954690d92358107e78bafd0db0baa (diff) |
Fix #52 - Add API versioning (v1)
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/api/v1/accounts_controller_spec.rb (renamed from spec/controllers/api/accounts_controller_spec.rb) | 2 | ||||
-rw-r--r-- | spec/controllers/api/v1/apps_controller_spec.rb (renamed from spec/controllers/api/apps_controller_spec.rb) | 2 | ||||
-rw-r--r-- | spec/controllers/api/v1/follows_controller_spec.rb (renamed from spec/controllers/api/follows_controller_spec.rb) | 2 | ||||
-rw-r--r-- | spec/controllers/api/v1/media_controller_spec.rb (renamed from spec/controllers/api/media_controller_spec.rb) | 2 | ||||
-rw-r--r-- | spec/controllers/api/v1/statuses_controller_spec.rb (renamed from spec/controllers/api/statuses_controller_spec.rb) | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/spec/controllers/api/accounts_controller_spec.rb b/spec/controllers/api/v1/accounts_controller_spec.rb index 7fef8b9fe..bc7c78c70 100644 --- a/spec/controllers/api/accounts_controller_spec.rb +++ b/spec/controllers/api/v1/accounts_controller_spec.rb @@ -1,6 +1,6 @@ require 'rails_helper' -RSpec.describe Api::AccountsController, type: :controller do +RSpec.describe Api::V1::AccountsController, type: :controller do render_views let(:user) { Fabricate(:user, account: Fabricate(:account, username: 'alice')) } diff --git a/spec/controllers/api/apps_controller_spec.rb b/spec/controllers/api/v1/apps_controller_spec.rb index ebadddde2..20a0755ff 100644 --- a/spec/controllers/api/apps_controller_spec.rb +++ b/spec/controllers/api/v1/apps_controller_spec.rb @@ -1,6 +1,6 @@ require 'rails_helper' -RSpec.describe Api::AppsController, type: :controller do +RSpec.describe Api::V1::AppsController, type: :controller do render_views describe 'POST #create' do diff --git a/spec/controllers/api/follows_controller_spec.rb b/spec/controllers/api/v1/follows_controller_spec.rb index f1775dfbc..1346141fa 100644 --- a/spec/controllers/api/follows_controller_spec.rb +++ b/spec/controllers/api/v1/follows_controller_spec.rb @@ -1,6 +1,6 @@ require 'rails_helper' -RSpec.describe Api::FollowsController, type: :controller do +RSpec.describe Api::V1::FollowsController, type: :controller do render_views let(:user) { Fabricate(:user, account: Fabricate(:account, username: 'alice')) } diff --git a/spec/controllers/api/media_controller_spec.rb b/spec/controllers/api/v1/media_controller_spec.rb index e6c44cc9f..1b91354d4 100644 --- a/spec/controllers/api/media_controller_spec.rb +++ b/spec/controllers/api/v1/media_controller_spec.rb @@ -1,6 +1,6 @@ require 'rails_helper' -RSpec.describe Api::MediaController, type: :controller do +RSpec.describe Api::V1::MediaController, type: :controller do render_views let(:user) { Fabricate(:user, account: Fabricate(:account, username: 'alice')) } diff --git a/spec/controllers/api/statuses_controller_spec.rb b/spec/controllers/api/v1/statuses_controller_spec.rb index b1f0a7bcc..7af54299a 100644 --- a/spec/controllers/api/statuses_controller_spec.rb +++ b/spec/controllers/api/v1/statuses_controller_spec.rb @@ -1,6 +1,6 @@ require 'rails_helper' -RSpec.describe Api::StatusesController, type: :controller do +RSpec.describe Api::V1::StatusesController, type: :controller do render_views let(:user) { Fabricate(:user, account: Fabricate(:account, username: 'alice')) } |