spec/models/metasploit/credential/origin/cracked_password_spec.rb in metasploit-credential-0.14.7 vs spec/models/metasploit/credential/origin/cracked_password_spec.rb in metasploit-credential-0.14.8
- old
+ new
@@ -1,24 +1,26 @@
-RSpec.describe Metasploit::Credential::Origin::CrackedPassword, type: :model do
+require 'spec_helper'
+
+describe Metasploit::Credential::Origin::CrackedPassword do
it_should_behave_like 'Metasploit::Concern.run'
context 'associations' do
- it { is_expected.to have_many(:cores).class_name('Metasploit::Credential::Core').dependent(:destroy) }
- it { is_expected.to belong_to(:originating_core).class_name('Metasploit::Credential::Core') }
+ it { should have_many(:cores).class_name('Metasploit::Credential::Core').dependent(:destroy) }
+ it { should belong_to(:originating_core).class_name('Metasploit::Credential::Core') }
end
context 'database' do
context 'columns' do
it_should_behave_like 'timestamp database columns'
context 'foreign keys' do
- it { is_expected.to have_db_column(:metasploit_credential_core_id).of_type(:integer).with_options(null: false) }
+ it { should have_db_column(:metasploit_credential_core_id).of_type(:integer).with_options(null: false) }
end
end
context 'indices' do
context 'foreign keys' do
- it { is_expected.to have_db_index(:metasploit_credential_core_id) }
+ it { should have_db_index(:metasploit_credential_core_id) }
end
end
end
end
\ No newline at end of file