mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
Removed unused let blocks (#7446)
The bodies of these blocks were never evaluated.
This commit is contained in:

committed by
Guo Xiang Tan

parent
17b34f5744
commit
ad44243a57
@ -251,8 +251,6 @@ describe CategoriesController do
|
||||
end
|
||||
|
||||
describe "logged in" do
|
||||
let(:valid_attrs) { { id: category.id, name: "hello", color: "ff0", text_color: "fff" } }
|
||||
|
||||
before do
|
||||
sign_in(admin)
|
||||
end
|
||||
@ -399,8 +397,6 @@ describe CategoriesController do
|
||||
end
|
||||
|
||||
describe 'logged in' do
|
||||
let(:valid_attrs) { { id: category.id, slug: 'fff' } }
|
||||
|
||||
before do
|
||||
sign_in(admin)
|
||||
end
|
||||
|
Reference in New Issue
Block a user