mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-09 14:58:05 -05:00
Remove some mongoid version checks from test suite
We no longer run against or support old Mongoid versions.
This commit is contained in:
@@ -34,10 +34,6 @@ class DeviseHelperTest < Devise::IntegrationTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
test 'test errors.messages.not_saved with multiple errors from i18n' do
|
test 'test errors.messages.not_saved with multiple errors from i18n' do
|
||||||
# Dirty tracking behavior prevents email validations from being applied:
|
|
||||||
# https://github.com/mongoid/mongoid/issues/756
|
|
||||||
(pending "Fails on Mongoid < 2.1"; break) if defined?(Mongoid) && Mongoid::VERSION.to_f < 2.1
|
|
||||||
|
|
||||||
get new_user_registration_path
|
get new_user_registration_path
|
||||||
|
|
||||||
fill_in 'email', with: 'invalid_email'
|
fill_in 'email', with: 'invalid_email'
|
||||||
|
|||||||
@@ -98,10 +98,6 @@ class RegistrationTest < Devise::IntegrationTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
test 'a guest user cannot sign up with invalid information' do
|
test 'a guest user cannot sign up with invalid information' do
|
||||||
# Dirty tracking behavior prevents email validations from being applied:
|
|
||||||
# https://github.com/mongoid/mongoid/issues/756
|
|
||||||
(pending "Fails on Mongoid < 2.1"; break) if defined?(Mongoid) && Mongoid::VERSION.to_f < 2.1
|
|
||||||
|
|
||||||
get new_user_registration_path
|
get new_user_registration_path
|
||||||
|
|
||||||
fill_in 'email', with: 'invalid_email'
|
fill_in 'email', with: 'invalid_email'
|
||||||
@@ -120,10 +116,6 @@ class RegistrationTest < Devise::IntegrationTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
test 'a guest should not sign up with email/password that already exists' do
|
test 'a guest should not sign up with email/password that already exists' do
|
||||||
# Dirty tracking behavior prevents email validations from being applied:
|
|
||||||
# https://github.com/mongoid/mongoid/issues/756
|
|
||||||
(pending "Fails on Mongoid < 2.1"; break) if defined?(Mongoid) && Mongoid::VERSION.to_f < 2.1
|
|
||||||
|
|
||||||
create_user
|
create_user
|
||||||
get new_user_registration_path
|
get new_user_registration_path
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
test:
|
test:
|
||||||
<%= Mongoid::VERSION.to_i > 4 ? 'clients' : 'sessions' %>:
|
clients:
|
||||||
default:
|
default:
|
||||||
database: devise-test-suite
|
database: devise-test-suite
|
||||||
hosts:
|
hosts:
|
||||||
|
|||||||
Reference in New Issue
Block a user