active_fedora-crosswalks 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWQxM2RiNDc1YmYyNjYxM2Y5MTE1ZTY0ZDgyOWQ2MzI5OTU1YmYzZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzE4NjE4YzExZGZmZDczZTNmZTU1Y2RhMWMxOGMzZDc1MWMzYTAwYQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWZiZGFlZTQ1YmRkN2JlOTEyNjNkMGJhNjdmNWRiNWY3M2FiMzI5MGQwNTll
|
10
|
+
ZDc5YWE5MTQ5OGM4ZTA2MjQ5NTQ2ZTMyNjExZWVkMDg1YzYwOGExM2M2NTRm
|
11
|
+
ZDM3YTk5MDMyYzA0ODFhYTk2MDhmMWRlZTFiZThjN2U2ZWY3ODY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWU3NGNkMTY5YmRkZGRkY2YzNzA1ZmNhNGMzM2M5NzJjYWMwMWM0MGM3OGRk
|
14
|
+
YzU2YmU3N2M0ZDJhMzc2YzllYzAwOWI1Yzc5OTMwYjBkNjViNWFlMjQ4N2Jh
|
15
|
+
MGQ3ZDZkYWEyNzBkMjRiOGZjZGQwZDRjNTM0NTkzMzFjYTQxNTA=
|
@@ -66,6 +66,7 @@ module ActiveFedora
|
|
66
66
|
def create_reader
|
67
67
|
object, method, expected_args = source_accessor.get_reader
|
68
68
|
crosswalker = self
|
69
|
+
return if object.respond_to?("unstubbed_#{method}".to_sym)
|
69
70
|
object.singleton_class.class_eval do
|
70
71
|
alias_method "unstubbed_#{method}".to_sym, method.to_sym
|
71
72
|
end
|
@@ -78,6 +79,7 @@ module ActiveFedora
|
|
78
79
|
def create_writer
|
79
80
|
object, method, expected_args = source_accessor.get_writer
|
80
81
|
crosswalker = self
|
82
|
+
return if object.respond_to?("unstubbed_#{method}".to_sym)
|
81
83
|
object.singleton_class.class_eval do
|
82
84
|
alias_method "unstubbed_#{method}".to_sym, method.to_sym
|
83
85
|
end
|
@@ -16,6 +16,9 @@ describe ActiveFedora::Crosswalks::Crosswalkable do
|
|
16
16
|
ds.crosswalk :field => :title, :to => :other_title, :in => :descMetadata
|
17
17
|
end
|
18
18
|
end
|
19
|
+
it "should be able to reload" do
|
20
|
+
expect {asset.load_datastreams}.not_to raise_error
|
21
|
+
end
|
19
22
|
context "when a field is set" do
|
20
23
|
context "on the source datastream" do
|
21
24
|
before(:each) do
|