publish_my_data 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,6 +23,18 @@ module PublishMyData
23
23
  it 'should return resources for the types used in the dataset' do
24
24
  dataset.types.map(&:uri).should == [type_one, type_two]
25
25
  end
26
+
27
+ context 'given an added type for the dataset' do
28
+ let(:type_three) { 'http://example.com/types/three' }
29
+ before do
30
+ dataset.write_predicate(RDF.type, [RDF::PMD_DS.Dataset, type_three])
31
+ dataset.save!
32
+ end
33
+
34
+ it 'should ignore the dataset type' do
35
+ dataset.types.map(&:uri).should_not include(type_three)
36
+ end
37
+ end
26
38
  end
27
39
 
28
40
  describe '#type_count' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: publish_my_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -547,7 +547,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
547
547
  version: '0'
548
548
  segments:
549
549
  - 0
550
- hash: 246507114754998859
550
+ hash: 1900176556932707979
551
551
  required_rubygems_version: !ruby/object:Gem::Requirement
552
552
  none: false
553
553
  requirements: