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

Version Path
publish_my_data-1.3.25 spec/models/publish_my_data/example_resource_spec.rb
publish_my_data-1.3.24 spec/models/publish_my_data/example_resource_spec.rb
publish_my_data-1.3.23 spec/models/publish_my_data/example_resource_spec.rb
publish_my_data-1.3.22 spec/models/publish_my_data/example_resource_spec.rb
publish_my_data-1.3.21 spec/models/publish_my_data/example_resource_spec.rb
publish_my_data-1.3.20 spec/models/publish_my_data/example_resource_spec.rb
publish_my_data-1.3.19 spec/models/publish_my_data/example_resource_spec.rb
publish_my_data-1.3.18 spec/models/publish_my_data/example_resource_spec.rb
publish_my_data-1.3.17 spec/models/publish_my_data/example_resource_spec.rb
publish_my_data-1.3.16 spec/models/publish_my_data/example_resource_spec.rb
publish_my_data-1.3.15 spec/models/publish_my_data/example_resource_spec.rb
publish_my_data-1.3.14 spec/models/publish_my_data/example_resource_spec.rb
publish_my_data-1.3.13 spec/models/publish_my_data/example_resource_spec.rb
publish_my_data-1.3.12 spec/models/publish_my_data/example_resource_spec.rb
publish_my_data-1.3.11 spec/models/publish_my_data/example_resource_spec.rb
publish_my_data-1.3.10 spec/models/publish_my_data/example_resource_spec.rb
publish_my_data-1.3.9 spec/models/publish_my_data/example_resource_spec.rb
publish_my_data-1.3.8 spec/models/publish_my_data/example_resource_spec.rb
publish_my_data-1.3.7 spec/models/publish_my_data/example_resource_spec.rb
publish_my_data-1.3.6 spec/models/publish_my_data/example_resource_spec.rb