spec/specset_spec.rb in marcspec-1.1.1 vs spec/specset_spec.rb in marcspec-1.5.0
- old
+ new
@@ -116,9 +116,15 @@
h = ss.hash_from_marc @one
h['one'].should.equal [1]
h['two'].should.equal [2]
h['letters'].should.equal ['a', 'b']
end
+
+ it "bails if it can't find a map" do
+ @speclist << {:solrField => 'tst', :mapname=>'nosuch', :specs => [['245']]}
+ lambda{@ss.buildSpecsFromList(@speclist)}.should.raise SystemExit
+ end
+
end
describe "Specset Benchmarking" do
\ No newline at end of file