rdf-spec 0.3.10 → 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rdf/spec/enumerable.rb +17 -0
- data/lib/rdf/spec/writable.rb +7 -0
- metadata +8 -8
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.11
|
data/lib/rdf/spec/enumerable.rb
CHANGED
@@ -28,6 +28,23 @@ module RDF_Enumerable
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
+
describe "valid?" do
|
32
|
+
it "returns true if all statements are valid" do
|
33
|
+
@enumerable.should be_valid
|
34
|
+
end
|
35
|
+
|
36
|
+
it "returns false if any statement is invalid" do
|
37
|
+
if @enumerable.respond_to?(:<<)
|
38
|
+
s = RDF::Statement.from([nil, nil, nil])
|
39
|
+
s.should_not be_valid
|
40
|
+
@enumerable << s
|
41
|
+
@enumerable.should_not be_valid
|
42
|
+
else
|
43
|
+
pending("can't add statement to immutable enumerable")
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
31
48
|
context "when counting statements" do
|
32
49
|
it "should respond to #empty?" do
|
33
50
|
@enumerable.should respond_to(:empty?)
|
data/lib/rdf/spec/writable.rb
CHANGED
@@ -57,6 +57,13 @@ module RDF_Writable
|
|
57
57
|
@writable.should have_statement(@statements.first)
|
58
58
|
@writable.count.should == 1
|
59
59
|
end
|
60
|
+
|
61
|
+
it "inserts an invalid statement" do
|
62
|
+
s = RDF::Statement.from([nil, nil, nil])
|
63
|
+
s.should_not be_valid
|
64
|
+
@writable << s
|
65
|
+
@writable.count.should == 1
|
66
|
+
end
|
60
67
|
end
|
61
68
|
|
62
69
|
context "when inserting statements" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-11-
|
14
|
+
date: 2012-11-28 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rspec
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 2.
|
23
|
+
version: 2.12.0
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -28,7 +28,7 @@ dependencies:
|
|
28
28
|
requirements:
|
29
29
|
- - ! '>='
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
version: 2.
|
31
|
+
version: 2.12.0
|
32
32
|
- !ruby/object:Gem::Dependency
|
33
33
|
name: yard
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
@@ -36,7 +36,7 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - ! '>='
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 0.
|
39
|
+
version: 0.8.3
|
40
40
|
type: :development
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ! '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.8.3
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: rdf
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
requirements:
|
53
53
|
- - ~>
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.3.
|
55
|
+
version: 0.3.11
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
58
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - ~>
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.3.
|
63
|
+
version: 0.3.11
|
64
64
|
description: RDF.rb plugin that provides RSpec matchers and shared examples for RDF
|
65
65
|
objects.
|
66
66
|
email: public-rdf-ruby@w3.org
|