Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lstrzebinczyk committed May 13, 2024
1 parent 0256948 commit 84db185
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@
end

specify do
expect(User.new.tap do |u|
u.projects.build(title: 'Project')
end.projects).to match([have_attributes(title: 'Project')])
user = User.new
user.projects.build(title: 'Project')
expect(user.projects).to match([have_attributes(title: 'Project')])
end
end

Expand Down

0 comments on commit 84db185

Please sign in to comment.