spec/active_triples/resource_spec.rb in active-triples-0.1.1 vs spec/active_triples/resource_spec.rb in active-triples-0.1.2

- old
+ new

@@ -193,9 +193,13 @@ DummyResource.property :relation, :predicate => RDF::DC.relation, :class_name => RDF::URI('http://example.org') d = DummyResource.new d.relation = RDF::DC.type expect { d.relation.first }.to raise_error "class_name for relation is a RDF::URI; must be a class" end + + it 'should return nil when none is given' do + expect(DummyResource.properties['title'][:class_name]).to be_nil + end end describe 'attributes' do before do subject.license = license