demarches-normaliennes/spec/serializers/procedure_serializer_spec.rb
2018-10-22 23:28:16 +02:00

11 lines
345 B
Ruby

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}")
is_expected.to include(state: "publiee")
}
end
end