Skip to content

Commit

Permalink
Merge pull request #3 from imamatory/fix-typo
Browse files Browse the repository at this point in the history
Fix typo in module name
  • Loading branch information
mokevnin committed Aug 13, 2019
2 parents 16cf07a + 971d807 commit 96782d6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class ApplicationController < ActionController::Base
include AuthManagment
include AuthManagement
end
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module AuthManagment
module AuthManagement
def sign_in(user)
session[:user_id] = user.id
end
Expand Down
4 changes: 3 additions & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ApplicationHelper
include AuthManagment
include AuthManagement
end
4 changes: 3 additions & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# frozen_string_literal: true

ENV['RAILS_ENV'] ||= 'test'
require_relative '../config/environment'
require 'rails/test_help'

class ActiveSupport::TestCase
include AuthManagment
include AuthManagement
# Run tests in parallel with specified workers
parallelize(workers: :number_of_processors)

Expand Down

0 comments on commit 96782d6

Please sign in to comment.