Sha256: 160d080baa8ed191936cb6794a506fa745ee3f305d07d9f09c0a89c634ae5e64
Contents?: true
Size: 659 Bytes
Versions: 6
Compression:
Stored size: 659 Bytes
Contents
require 'spec_helper' RSpec.describe 'DataModels::AccessPoint' do subject { PatronusFati::DataModels::AccessPoint } let(:unsaved_instance) { subject.new(bssid: '12:34:56:00:00:01', type: 'infrastructure', channel: 1) } let(:saved_instance) { unsaved_instance.save } it { expect(subject).to have_property(:bssid) } it { expect(subject).to have_property(:type) } it { expect(subject).to have_property(:channel) } it { expect(subject).to have_property(:last_seen_at) } it { expect(subject).to have_many(:connections) } it { expect(subject).to have_many(:ssids) } it { expect(subject).to have_many(:clients).through(:connections) } end
Version data entries
6 entries across 6 versions & 1 rubygems