mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-11-23 19:33:46 +01:00
Use Omniauthable user model with admin role
This commit is contained in:
1 parent
52c8e3d7d2
commit
b0f8bc5090
18 files changed
+167
-39
No files matched your search
@@ -4,7 +4,7 @@ class Admin::DashboardControllerTest < ActionDispatch::IntegrationTest
|
||||
include Devise::Test::IntegrationHelpers
|
||||
|
||||
setup do
|
||||
login
|
||||
login_admin
|
||||
end
|
||||
|
||||
test "should get index" do
|
||||
|
||||
@@ -4,7 +4,7 @@ class Admin::TranslationsControllerTest < ActionDispatch::IntegrationTest
|
||||
include Devise::Test::IntegrationHelpers
|
||||
|
||||
setup do
|
||||
login
|
||||
login_admin
|
||||
@translation = translations(:translation_one)
|
||||
@translation_alternative = translations(:translation_two_alternative)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user