This commit introduces changes to the user data export archive format. This extends data set which is included in the archive. This data can be then imported to other pods when this feature is implemented. Also the commit adds the archive format json schema. ATM it is used in automatic tests only, but in future it will also be used to validate incoming archives.
18 lines
516 B
Ruby
18 lines
516 B
Ruby
shared_examples_for "a shareable" do
|
|
describe "#subscribed_pods_uris" do
|
|
let(:pods) { Array.new(3) { FactoryGirl.create(:pod) } }
|
|
let(:subscribers) {
|
|
pods.map {|pod|
|
|
FactoryGirl.create(:person, pod: pod)
|
|
}
|
|
}
|
|
let(:pods_uris) {
|
|
pods.map {|pod| pod.url_to("") }
|
|
}
|
|
|
|
it "builds pod list basing on subscribers" do
|
|
expect(object).to receive(:subscribers).and_return(subscribers)
|
|
expect(object.subscribed_pods_uris).to match_array(pods_uris)
|
|
end
|
|
end
|
|
end
|