Introduction
Introduction Statistics Contact Development Disclaimer Help
call_spec.rb - warvox - VoIP based wardialing tool, forked from rapid7/warvox.
git clone git://jay.scot/warvox
Log
Files
Refs
README
---
call_spec.rb (1140B)
---
1 # == Schema Information
2 #
3 # Table name: calls
4 #
5 # id :integer not null, primary key
6 # created_at :datetime
7 # updated_at :datetime
8 # number :text not null
9 # project_id :integer not null
10 # job_id :integer not null
11 # provider_id :integer not null
12 # answered :boolean
13 # busy :boolean
14 # error :text
15 # audio_length :integer
16 # ring_length :integer
17 # caller_id :text
18 # analysis_job_id :integer
19 # analysis_started_at :datetime
20 # analysis_completed_at :datetime
21 # peak_freq :float
22 # peak_freq_data :text
23 # line_type :text
24 # fprint :integer is an Array
25 #
26
27 require 'rails_helper'
28
29 RSpec.describe Call, type: :model do
30 it { should belong_to(:project) }
31 it { should belong_to(:provider) }
32 it { should belong_to(:job) }
33 it { should have_one(:call_medium).dependent(:delete) }
34
35 it "valid record" do
36 expect(build(:call)).to be_valid
37 end
38 end
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.