Sha256: 218b94c4e9f56c8b3009c1d67ee638286241cb3f30af7ce77137061eb5789093
Contents?: true
Size: 567 Bytes
Versions: 1
Compression:
Stored size: 567 Bytes
Contents
require_relative '../spec_helper' require 'common_repository_model/persistence_base' describe CommonRepositoryModel::PersistenceBase do subject { CommonRepositoryModel::PersistenceBase.new } describe '.find' do it 'should handle find with missing parameter' do lambda { subject.class.find(nil) }.must_raise(CommonRepositoryModel::ObjectNotFoundError) end it 'should handle find with invalid PID' do lambda { subject.class.find('-1') }.must_raise(CommonRepositoryModel::ObjectNotFoundError) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
common_repository_model-0.1.0 | spec/common_respository_model/persistence_base_spec.rb |