Skip to content

Commit

Permalink
Avoid a bug of rails 6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sankichi92 committed Feb 6, 2021
1 parent 8887811 commit 39ab174
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/requests/admin/lives_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@
{
live: {
date: live.date.to_s,
name: name,
name: live_name,
place: live.place,
comment: comment,
album_url: album_url,
},
}
end
let(:name) { live.name }
let(:live_name) { live.name }
let(:comment) { live.comment }
let(:album_url) { live.album_url }

Expand All @@ -114,7 +114,7 @@
end

context 'with invalid params' do
let(:name) { 'a' * 21 }
let(:live_name) { 'a' * 21 }

it 'responds 422' do
patch admin_live_path(live), params: params
Expand Down

0 comments on commit 39ab174

Please sign in to comment.