| signature_spec.rb - warvox - VoIP based wardialing tool, forked from rapid7/war… | |
| git clone git://jay.scot/warvox | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| signature_spec.rb (644B) | |
| --- | |
| 1 # == Schema Information | |
| 2 # | |
| 3 # Table name: signatures | |
| 4 # | |
| 5 # id :integer not null, primary key | |
| 6 # created_at :datetime | |
| 7 # updated_at :datetime | |
| 8 # name :text not null | |
| 9 # source :string(255) | |
| 10 # description :text | |
| 11 # category :string(255) | |
| 12 # line_type :string(255) | |
| 13 # risk :integer | |
| 14 # | |
| 15 | |
| 16 require 'rails_helper' | |
| 17 | |
| 18 RSpec.describe Signature, type: :model do | |
| 19 ## TODO association may not be needed | |
| 20 # causes crash: PG::UndefinedTable: ERROR: relation "signature_fps" … | |
| 21 #it { should have_many(:signature_fps) } | |
| 22 | |
| 23 it "valid record" do | |
| 24 expect(build(:signature)).to be_valid | |
| 25 end | |
| 26 end |