Sha256: 58bf14d65816bff1de644e82c05d1f069fbad1025d2384ea40544d29d5acbb7b
Contents?: true
Size: 617 Bytes
Versions: 3
Compression:
Stored size: 617 Bytes
Contents
require 'spec_helper' describe Quorum::JobFetchData do before(:each) do @fetch = Quorum::JobFetchData.new end it "validates presence of attributes" do @fetch.should have(1).error_on(:algo) @fetch.should have(1).error_on(:blast_dbs) @fetch.should have(1).error_on(:hit_id) @fetch.should have(1).error_on(:hit_display_id) @fetch.valid?.should be_false end it "passes validation when attrs are set" do @fetch.algo = "foo" @fetch.blast_dbs = "foo" @fetch.hit_id = "foo" @fetch.hit_display_id = "foo" @fetch.valid?.should be_true end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
quorum-0.8.2 | spec/models/job_fetch_data_spec.rb |
quorum-0.8.1 | spec/models/job_fetch_data_spec.rb |
quorum-0.8.0 | spec/models/job_fetch_data_spec.rb |