Sha256: 14efff990c149e25dabb27f3adcda41aa735a2f775eccc02449d51bbf4f1102a
Contents?: true
Size: 879 Bytes
Versions: 60
Compression:
Stored size: 879 Bytes
Contents
require 'spec_helper' describe Mdm::Route do it_should_behave_like 'Metasploit::Concern.run' context 'associations' do it { should belong_to(:session).class_name('Mdm::Session') } end context 'factory' do it 'should be valid' do route = FactoryGirl.build(:mdm_route) route.should be_valid end end context '#destroy' do it 'should successfully destroy the object' do route = FactoryGirl.create(:mdm_route) expect { route.destroy }.to_not raise_error expect { route.reload }.to raise_error(ActiveRecord::RecordNotFound) end end context 'database' do context 'columns' do it { should have_db_column(:session_id).of_type(:integer) } it { should have_db_column(:subnet).of_type(:string) } it { should have_db_column(:netmask).of_type(:string) } end end end
Version data entries
60 entries across 60 versions & 1 rubygems