Skip to content

Commit 39ab174

Browse files
committed
Avoid a bug of rails 6.1
cf. rspec/rspec-rails#2451
1 parent 8887811 commit 39ab174

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/requests/admin/lives_request_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@
8989
{
9090
live: {
9191
date: live.date.to_s,
92-
name: name,
92+
name: live_name,
9393
place: live.place,
9494
comment: comment,
9595
album_url: album_url,
9696
},
9797
}
9898
end
99-
let(:name) { live.name }
99+
let(:live_name) { live.name }
100100
let(:comment) { live.comment }
101101
let(:album_url) { live.album_url }
102102

@@ -114,7 +114,7 @@
114114
end
115115

116116
context 'with invalid params' do
117-
let(:name) { 'a' * 21 }
117+
let(:live_name) { 'a' * 21 }
118118

119119
it 'responds 422' do
120120
patch admin_live_path(live), params: params

0 commit comments

Comments
 (0)