moonmaster9000-dupe 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/dupe/mock_service_response.rb +0 -3
- metadata +1 -1
|
@@ -28,11 +28,9 @@ class Dupe
|
|
|
28
28
|
records.each {|r| find_one(r, identifiers)}
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
|
|
32
31
|
private
|
|
33
32
|
def find_all(records)
|
|
34
33
|
ActiveResource::HttpMock.respond_to do |mock|
|
|
35
|
-
puts "mocking response to #{prefix}#{@resource_name.to_s.pluralize}.xml"
|
|
36
34
|
mock.get "#{prefix}#{@resource_name.to_s.pluralize}.xml", {}, format_for_service_response(records)
|
|
37
35
|
end
|
|
38
36
|
end
|
|
@@ -40,7 +38,6 @@ class Dupe
|
|
|
40
38
|
def find_one(record, identifiers)
|
|
41
39
|
ActiveResource::HttpMock.respond_to do |mock|
|
|
42
40
|
identifiers.each do |identifier|
|
|
43
|
-
puts "mocking response to #{prefix}#{@resource_name.to_s.pluralize}/#{record[identifier]}.xml"
|
|
44
41
|
mock.get "#{prefix}#{@resource_name.to_s.pluralize}/#{record[identifier]}.xml", {}, format_for_service_response(record)
|
|
45
42
|
end
|
|
46
43
|
end
|