spec/controlled_spec.rb in linked_vocabs-0.1.0 vs spec/controlled_spec.rb in linked_vocabs-0.2.0
- old
+ new
@@ -16,10 +16,16 @@
ActiveTriples::Repositories.clear_repositories!
end
subject { DummyAuthority }
+ describe '#set_subject' do
+ it 'handles bnodes' do
+ expect(subject.new.set_subject!(RDF::Node.new)).to eq false
+ end
+ end
+
describe 'vocabulary registration' do
it 'should add vocabulary' do
expect(subject.vocabularies).to include :dcmitype
end
it 'should find its vocabulary class' do
@@ -80,10 +86,10 @@
end
describe '#load_vocabularies' do
it 'should load data' do
subject.load_vocabularies
- expect(subject.new('Image').has_subject?(RDF::URI('http://purl.org/dc/dcmitype/Image'))).to be_true
+ expect(subject.new('Image').has_subject?(RDF::URI('http://purl.org/dc/dcmitype/Image'))).to eq true
end
end
describe '#search' do
before do