| line_spec.rb - warvox - VoIP based wardialing tool, forked from rapid7/warvox. | |
| git clone git://jay.scot/warvox | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| line_spec.rb (510B) | |
| --- | |
| 1 # == Schema Information | |
| 2 # | |
| 3 # Table name: lines | |
| 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 # line_type :text | |
| 11 # notes :text | |
| 12 # | |
| 13 | |
| 14 require 'rails_helper' | |
| 15 | |
| 16 RSpec.describe Line, type: :model do | |
| 17 it { should belong_to(:project) } | |
| 18 it { should have_many(:line_attributes).dependent(:delete_all) } | |
| 19 | |
| 20 it "valid record" do | |
| 21 expect(build(:line)).to be_valid | |
| 22 end | |
| 23 end |