active-fedora 6.0.0.pre9 → 6.0.0.pre10

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ module ActiveFedora
6
6
 
7
7
  delegate :class, :to_s, :==, :kind_of?, :each, :map, :empty?, :as_json,
8
8
  :is_a?, :to_ary, :inspect, :first, :last, :include?, :count,
9
- :to => :values
9
+ :size, :join, :[], :to => :values
10
10
 
11
11
  # @param graph RDF::Graph
12
12
  # @param subject RDF::URI
@@ -1,3 +1,3 @@
1
1
  module ActiveFedora
2
- VERSION = "6.0.0.pre9"
2
+ VERSION = "6.0.0.pre10"
3
3
  end
@@ -9,6 +9,7 @@ describe ActiveFedora::NtriplesRDFDatastream do
9
9
  map.title(:in => RDF::DC)
10
10
  map.publisher(:in => RDF::DC)
11
11
  map.creator(:in => RDF::DC)
12
+ map.educationLevel(:in => RDF::DC)
12
13
  map.based_near(:in => RDF::FOAF)
13
14
  map.related_url(:to => "seeAlso", :in => RDF::RDFS)
14
15
  end
@@ -39,6 +40,12 @@ describe ActiveFedora::NtriplesRDFDatastream do
39
40
  @subject.related_url.should == ["http://google.com/"]
40
41
  end
41
42
 
43
+ it "should be able to call enumerable methods on the fields" do
44
+ @subject.title.join(', ').should == "Title of work"
45
+ @subject.title.count.should == 1
46
+ @subject.title.size.should == 1
47
+ @subject.title[0].should == "Title of work"
48
+ end
42
49
 
43
50
  it "should return fields that are not TermProxies" do
44
51
  @subject.created.should be_kind_of Array
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active-fedora
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0.pre9
4
+ version: 6.0.0.pre10
5
5
  prerelease: 6
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: 2013-02-03 00:00:00.000000000 Z
14
+ date: 2013-02-04 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rsolr