spec/models/metasploit/credential/origin/service_spec.rb in metasploit-credential-1.0.1 vs spec/models/metasploit/credential/origin/service_spec.rb in metasploit-credential-1.1.0

- old
+ new

@@ -1,5 +1,7 @@ +require 'spec_helper' + RSpec.describe Metasploit::Credential::Origin::Service, type: :model do include_context 'Mdm::Workspace' subject(:service_origin) do FactoryGirl.build(:metasploit_credential_origin_service) @@ -148,10 +150,10 @@ end end context do # example to sample for service_id - before(:each) do + before(:example) do FactoryGirl.create(:metasploit_credential_origin_service) end it { is_expected.to validate_uniqueness_of(:module_full_name).scoped_to(:service_id) } end