Skip to content

Commit

Permalink
Fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
pyromaniac committed Jan 2, 2024
1 parent 1216a34 commit db99fbf
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions spec/operations/form/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -361,17 +361,17 @@
subject(:pretty_inspect) { form.pretty_inspect }

specify do
expect(pretty_inspect).to eq(<<~INSPECT)
#<Dummy::Form
attributes={:name=>nil,
:tags=>[],
:author=>
#<Dummy::Author
attributes={:title=>nil},
errors=#<ActiveModel::Errors []>>,
:posts=>[]},
errors=#<ActiveModel::Errors []>>
INSPECT
expect(pretty_inspect).to match(%r{
#<Dummy::Form\n
\s+attributes=\{:name=>nil,\n
\s+:tags=>\[\],\n
\s+:author=>\n
\s+\#<Dummy::Author\n
\s+attributes=\{:title=>nil\},\n
\s+errors=\#<ActiveModel::Errors[^\[]+\[\]>>,\n
\s+:posts=>\[\]\},\n
\s+errors=\#<ActiveModel::Errors[^\[]+\[\]>>
}x)
end
end
end
Expand Down

0 comments on commit db99fbf

Please sign in to comment.