Skip to content

Commit

Permalink
Introduce staging namespace in API
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBr committed Nov 13, 2018
1 parent 27c9635 commit 78d60e2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class StagingProjectController < ApplicationController
class Staging::ProjectsController < ApplicationController
before_action :set_project

private
Expand Down
5 changes: 5 additions & 0 deletions src/api/app/controllers/staging/staged_requests_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class Staging::StagedRequestsController < Staging::ProjectsController
def index
@requests = @project.staged_requests
end
end

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.describe StagingProject::StagedRequestsController, type: :controller do
RSpec.describe Staging::StagedRequestsController, type: :controller do
render_views
describe 'GET #index' do
let(:user) { create(:confirmed_user) }
Expand Down

0 comments on commit 78d60e2

Please sign in to comment.