Skip to content

Commit

Permalink
Merge pull request #46 from BookingSync/fix-specs
Browse files Browse the repository at this point in the history
Fix spec
  • Loading branch information
pyromaniac authored Jan 7, 2024
2 parents 1216a34 + c1b5084 commit 1c1c6ab
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions spec/operations/form/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -361,17 +361,16 @@
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 \
\sattributes=\{:name=>nil, \
\s\s:tags=>\[], \
\s\s:author=>\n\s\s\s#<Dummy::Author \
\s\s\s\sattributes=\{:title=>nil\}, \
\s\s\s\serrors=#<ActiveModel::Errors \[.*?\]>>, \
\s\s:posts=>\[\]\}, \
\serrors=#<ActiveModel::Errors \[.*?\]>>
}x)
end
end
end
Expand Down

0 comments on commit 1c1c6ab

Please sign in to comment.