Skip to content

Commit

Permalink
[webui] change Project::PublicKeyController => Projects::PublicKeyCon…
Browse files Browse the repository at this point in the history
…troller (plural)
  • Loading branch information
evanrolfe committed Jan 10, 2017
1 parent bf8e4b7 commit 5c9f7b1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
@@ -1,4 +1,4 @@
class Project
module Projects
class PublicKeyController < ApplicationController
before_action :extract_user_public
skip_before_action :extract_user
Expand Down
4 changes: 2 additions & 2 deletions src/api/config/routes.rb
Expand Up @@ -704,8 +704,8 @@ def self.public_or_about_path?(request)
get 'main/sitemap_projects' => 'webui/main#sitemap_projects'
get 'main/sitemap_packages/:listaction' => 'webui/main#sitemap_packages'

resources :project, only: [], param: :name do
resource :public_key, controller: 'project/public_key', only: [:show]
resources :projects, only: [], param: :name do
resource :public_key, controller: 'projects/public_key', only: [:show]
end
end

Expand Down
@@ -1,7 +1,7 @@
require 'rails_helper'
require 'webmock/rspec'

RSpec.describe Project::PublicKeyController, type: :controller, vcr: true do
RSpec.describe Projects::PublicKeyController, type: :controller, vcr: true do
describe 'GET #show' do
let(:project) do
create(
Expand Down

0 comments on commit 5c9f7b1

Please sign in to comment.