Commit d82ae15
Changed files (4)
app
controllers
config
spec
controllers
app/controllers/login_controller.rb
@@ -1,5 +0,0 @@
-class LoginController < ApplicationController
- def new
- render nothing: true
- end
-end
app/controllers/logins_controller.rb
@@ -0,0 +1,5 @@
+class LoginsController < ApplicationController
+ def new
+ render nothing: true
+ end
+end
config/routes.rb
@@ -1,5 +1,5 @@
Mocode::Application.routes.draw do
- get 'logins/new', to: 'login#new'
+ get 'logins/new', to: 'logins#new'
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
spec/controllers/login_controller_spec.rb → spec/controllers/logins_controller_spec.rb
@@ -1,6 +1,6 @@
require "spec_helper"
-describe LoginController do
+describe LoginsController do
context "#new" do
it "loads the login page" do
get :new