Skip to content

Instantly share code, notes, and snippets.

@biske
Created May 10, 2022 14:56
Show Gist options
  • Save biske/bc36e2bdc2506f30617be7c6b3c81fe2 to your computer and use it in GitHub Desktop.
Save biske/bc36e2bdc2506f30617be7c6b3c81fe2 to your computer and use it in GitHub Desktop.
data test
it 'responds with profile field data' do
send_request
expect(response_body).to include(
"id" => Integer,
"label" => params[:profile_field][:label],
"field_type" => params[:profile_field][:field_type],
"key" => params[:profile_field][:key],
"placeholder" => params[:profile_field][:placeholder],
"description" => params[:profile_field][:description],
"required" => false,
"hidden" => false,
"allow_null" => false,
"collect_from_signup" => false,
"collect_from_profile_edit" => false,
"display_on_profile_view" => false,
"display_on_directory_card" => false,
"created_at" => String,
"updated_at" => String,
"community_id" => community.id
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment