mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-22 19:52:18 -05:00
15 lines
383 B
Ruby
15 lines
383 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe DataPackage::LinkSerializer do
|
|
context "when generating an Data Package representation" do
|
|
subject(:serializer) { described_class.new(object) }
|
|
|
|
let(:output) { serializer.serialize }
|
|
let(:object) { create(:link, linkable: create(:model)) }
|
|
|
|
it "includes path" do
|
|
expect(output[:path]).to eq object.url
|
|
end
|
|
end
|
|
end
|