demarches-normaliennes/spec/serializers/procedure_serializer_spec.rb

12 lines
345 B
Ruby
Raw Normal View History

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")
}
end
end