spec/active_triples/property_spec.rb in active-triples-0.11.0 vs spec/active_triples/property_spec.rb in active-triples-1.0.0.rc1

- old
+ new

@@ -15,9 +15,19 @@ expect(subject.name).to eq :title expect(subject.predicate).to eq RDF::Vocab::DC.title expect(subject.class_name).to eq "Test" end + it 'should hold a block' do + fake = Object.new + property = described_class.new(options) do + fake.configure + end + + expect(fake).to receive(:configure) + property.config.call + end + describe "#to_h" do it "should not return the property's name" do expect(subject.to_h).to eq ( { :predicate => RDF::Vocab::DC.title,