Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
owen2345 committed Jan 8, 2023
1 parent f922c47 commit cd1164e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/models/post_type_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@
let(:kind) { 'Post' }

it 'adds the custom field to the default group for posts form' do
field = build(:custom_field)
field = post_type.add_field(field.attributes, field.settings)
expect(post_type.get_field_object(field.slug)).to eq(field)
data_field = build(:custom_field)
field = post_type.add_field(data_field.as_json(only: %i[slug name description]), data_field.settings)
expect(post_type.get_field_object(data_field.slug)).to eq(field)
end
end
end

0 comments on commit cd1164e

Please sign in to comment.