2018-10-22 19:22:51 +02:00
|
|
|
describe ProcedureSerializer do
|
|
|
|
describe '#attributes' do
|
|
|
|
subject { ProcedureSerializer.new(procedure).serializable_hash }
|
|
|
|
let(:procedure) { create(:procedure, :published) }
|
|
|
|
|
|
|
|
it {
|
|
|
|
is_expected.to include(link: "http://localhost:3000/commencer/#{procedure.path}")
|
2018-10-22 19:23:30 +02:00
|
|
|
is_expected.to include(state: "publiee")
|
2018-10-22 19:22:51 +02:00
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|