mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 02:09:39 +02:00
Remove unneeded specs
This commit is contained in:
parent
4b0db0e687
commit
42b8b990eb
1 changed files with 0 additions and 16 deletions
|
@ -16,16 +16,6 @@ RSpec.describe AdminUser do
|
||||||
@admin_user = Fabricate(:admin_user)
|
@admin_user = Fabricate(:admin_user)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should have one version' do
|
|
||||||
with_versioning do
|
|
||||||
@admin_user.versions.should == []
|
|
||||||
@admin_user.updated_at = Time.zone.now
|
|
||||||
@admin_user.save
|
|
||||||
@admin_user.errors.full_messages.should match_array([])
|
|
||||||
@admin_user.versions.size.should == 1
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'should require password confirmation when changing password' do
|
it 'should require password confirmation when changing password' do
|
||||||
@admin_user.valid?.should == true
|
@admin_user.valid?.should == true
|
||||||
@admin_user.password = 'not confirmed'
|
@admin_user.password = 'not confirmed'
|
||||||
|
@ -39,10 +29,4 @@ RSpec.describe AdminUser do
|
||||||
expect(described_class.min_password_length).to eq(8)
|
expect(described_class.min_password_length).to eq(8)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '#min_password_length' do
|
|
||||||
it 'returns minimum password length' do
|
|
||||||
expect(described_class.min_password_length).to eq(8)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue