Sha256: e28c46f7d491abf7151687ff8758017129f9dcbd7dc8d20ec3ae95e26ae959fc
Contents?: true
Size: 585 Bytes
Versions: 39
Compression:
Stored size: 585 Bytes
Contents
require 'spec_helper' describe PublishMyData::ExampleResource do let(:example_resource) { FactoryGirl.create(:example_resource) } describe '#as_ttl' do before do example_resource.write_predicate('http://example.com/foo', 'foo') example_resource.write_predicate('http://example.com/bar', 'bar') end it 'should return the turtle representation of the example resource' do example_resource.as_ttl.should == """ <http://pmdtest.dev/data/trousers/measurement1> <http://example.com/bar> \"bar\"; <http://example.com/foo> \"foo\" . """ end end end
Version data entries
39 entries across 39 versions & 1 rubygems