From 42b8b990eb6618b85b6a02dd79b40d88d05f4063 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Thu, 16 Feb 2017 15:05:27 +0200 Subject: [PATCH] Remove unneeded specs --- spec/models/admin_user_spec.rb | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/spec/models/admin_user_spec.rb b/spec/models/admin_user_spec.rb index 0d3c7e083..84a653614 100644 --- a/spec/models/admin_user_spec.rb +++ b/spec/models/admin_user_spec.rb @@ -16,16 +16,6 @@ RSpec.describe AdminUser do @admin_user = Fabricate(:admin_user) 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 @admin_user.valid?.should == true @admin_user.password = 'not confirmed' @@ -39,10 +29,4 @@ RSpec.describe AdminUser do expect(described_class.min_password_length).to eq(8) 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