diff options
author | Rémy Coutable <remy@rymai.me> | 2016-04-15 18:35:40 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-05-10 12:51:19 +0300 |
commit | 5589dcf8db0daf2235158724f6b18115a9abfa42 (patch) | |
tree | f1a2a196fc0edeed55944612345fe98e936d933c /spec/requests/api | |
parent | 6da3388569b3bf31ac72663a4c13dba83d064356 (diff) |
Fix a few places where autoloading would fail
- Fix naming of API::CommitStatuses
- Ensure we use require_dependency instead of require
- Ensure the namespace is right in lib/api/api.rb, otherwise, we
might require Grape::API::Helpers which defines the `#params` method.
This is to avoid requiring a file multiple times and getting an "Already
initialized constant" error.
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/requests/api')
-rw-r--r-- | spec/requests/api/commit_statuses_spec.rb (renamed from spec/requests/api/commit_status_spec.rb) | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/api/commit_status_spec.rb b/spec/requests/api/commit_statuses_spec.rb index f3785b19362..633927c8c3e 100644 --- a/spec/requests/api/commit_status_spec.rb +++ b/spec/requests/api/commit_statuses_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe API::CommitStatus, api: true do +describe API::CommitStatuses, api: true do include ApiHelpers let!(:project) { create(:project) } |