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 | |
parent | 3f75f522856954690d92358107e78bafd0db0baa (diff) |
Fix #52 - Add API versioning (v1)
Diffstat (limited to 'spec')
-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 | ||||
-rw-r--r-- | spec/helpers/api/accounts_helper_spec.rb | 5 | ||||
-rw-r--r-- | spec/helpers/api/apps_helper_spec.rb | 15 | ||||
-rw-r--r-- | spec/helpers/api/follows_helper_spec.rb | 5 | ||||
-rw-r--r-- | spec/helpers/api/media_helper_spec.rb | 5 | ||||
-rw-r--r-- | spec/helpers/api/salmon_helper_spec.rb | 5 | ||||
-rw-r--r-- | spec/helpers/api/statuses_helper_spec.rb | 5 | ||||
-rw-r--r-- | spec/helpers/api/subscriptions_helper_spec.rb | 5 |
12 files changed, 5 insertions, 50 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')) } diff --git a/spec/helpers/api/accounts_helper_spec.rb b/spec/helpers/api/accounts_helper_spec.rb deleted file mode 100644 index 8880aaef4..000000000 --- a/spec/helpers/api/accounts_helper_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'rails_helper' - -RSpec.describe Api::AccountsHelper, type: :helper do - -end diff --git a/spec/helpers/api/apps_helper_spec.rb b/spec/helpers/api/apps_helper_spec.rb deleted file mode 100644 index e26bca2cc..000000000 --- a/spec/helpers/api/apps_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'rails_helper' - -# Specs in this file have access to a helper object that includes -# the Api::AppsHelper. For example: -# -# describe Api::AppsHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# expect(helper.concat_strings("this","that")).to eq("this that") -# end -# end -# end -RSpec.describe Api::AppsHelper, type: :helper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/helpers/api/follows_helper_spec.rb b/spec/helpers/api/follows_helper_spec.rb deleted file mode 100644 index ecd9acc7a..000000000 --- a/spec/helpers/api/follows_helper_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'rails_helper' - -RSpec.describe Api::FollowsHelper, type: :helper do - -end diff --git a/spec/helpers/api/media_helper_spec.rb b/spec/helpers/api/media_helper_spec.rb deleted file mode 100644 index 5eb2def2a..000000000 --- a/spec/helpers/api/media_helper_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'rails_helper' - -RSpec.describe Api::MediaHelper, type: :helper do - -end diff --git a/spec/helpers/api/salmon_helper_spec.rb b/spec/helpers/api/salmon_helper_spec.rb deleted file mode 100644 index 23f1584df..000000000 --- a/spec/helpers/api/salmon_helper_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'rails_helper' - -RSpec.describe Api::SalmonHelper, type: :helper do - -end diff --git a/spec/helpers/api/statuses_helper_spec.rb b/spec/helpers/api/statuses_helper_spec.rb deleted file mode 100644 index c1793fda5..000000000 --- a/spec/helpers/api/statuses_helper_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'rails_helper' - -RSpec.describe Api::StatusesHelper, type: :helper do - -end diff --git a/spec/helpers/api/subscriptions_helper_spec.rb b/spec/helpers/api/subscriptions_helper_spec.rb deleted file mode 100644 index 9e6457c6f..000000000 --- a/spec/helpers/api/subscriptions_helper_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'rails_helper' - -RSpec.describe Api::SubscriptionsHelper, type: :helper do - -end |