spec/models/metasploit/credential/origin/service_spec.rb in metasploit-credential-2.0.14 vs spec/models/metasploit/credential/origin/service_spec.rb in metasploit-credential-3.0.0

- old
+ new

@@ -2,11 +2,11 @@ RSpec.describe Metasploit::Credential::Origin::Service, type: :model do subject(:service_origin) do - FactoryGirl.build(:metasploit_credential_origin_service) + FactoryBot.build(:metasploit_credential_origin_service) end it_should_behave_like 'Metasploit::Concern.run' context 'associations' do @@ -31,11 +31,11 @@ end context 'factories' do context 'metasploit_credential_origin_service' do subject(:metasploit_credential_origin_service) do - FactoryGirl.build(:metasploit_credential_origin_service) + FactoryBot.build(:metasploit_credential_origin_service) end it { is_expected.to be_valid } end end @@ -151,10 +151,10 @@ end context do # example to sample for service_id before(:example) do - FactoryGirl.create(:metasploit_credential_origin_service) + FactoryBot.create(:metasploit_credential_origin_service) end it { is_expected.to validate_uniqueness_of(:module_full_name).scoped_to(:service_id) } end end