Use tap instead of a temporary variable to modify after create (#15453)
This commit is contained in:
parent
b7246a5ef0
commit
33757683ec
1 changed files with 3 additions and 3 deletions
|
|
@ -2,9 +2,9 @@ require "rails_helper"
|
|||
|
||||
RSpec.describe Feeds::AssembleArticleMarkdown, type: :service do
|
||||
let(:user) do
|
||||
u = create(:user)
|
||||
u.setting.update(feed_mark_canonical: true)
|
||||
u
|
||||
create(:user).tap do |u|
|
||||
u.setting.update(feed_mark_canonical: true)
|
||||
end
|
||||
end
|
||||
let(:feed_source_url) { "https://feed.source/url" }
|
||||
let(:feed) { instance_double("Feedjira::Parser::RSS", url: "https://feed.source/") }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue