Sha256: 70e0eabb3e3654016a9922132d018e25bea056239447e069326822df7ba36eb1

Contents?: true

Size: 321 Bytes

Versions: 5

Compression:

Stored size: 321 Bytes

Contents

require 'spec_helper'

describe Mdm::Cred do

  context "Associations" do
    it { should have_many(:task_creds).class_name('Mdm::TaskCred').dependent(:destroy) }
    it { should have_many(:tasks).class_name('Mdm::Task').through(:task_creds) }
    it { should belong_to(:service).class_name('Mdm::Service') }
  end



end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
metasploit_data_models-0.15.2-java spec/app/models/mdm/cred_spec.rb
metasploit_data_models-0.15.2 spec/app/models/mdm/cred_spec.rb
metasploit_data_models-0.15.1-java spec/app/models/mdm/cred_spec.rb
metasploit_data_models-0.15.1 spec/app/models/mdm/cred_spec.rb
metasploit_data_models-0.15.0 spec/app/models/mdm/cred_spec.rb