Move tests as well, remove public namespace from controller

parent a881e4cc
module Public
class UnsubscribesController < ApplicationController
class UnsubscribesController < ApplicationController
skip_before_filter :authenticate_user!,
:reject_blocked, :set_current_user_for_observers,
:add_abilities
......@@ -20,5 +19,4 @@ module Public
@email = "#{params[:email]}.#{params[:format]}"
User.where(email: @email).first
end
end
end
require 'spec_helper'
describe Public::UnsubscribesController do
describe UnsubscribesController do
let!(:user) { create :user, email: 'me@example.com' }
describe "show" do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment