mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +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
@ -277,7 +277,6 @@ describe PostsController do
|
||||
|
||||
describe 'when logged in' do
|
||||
let(:user) { Fabricate(:user) }
|
||||
let(:post) { Fabricate(:post, user: user, post_number: 2) }
|
||||
|
||||
it "raises an error when the user doesn't have permission to see the post" do
|
||||
post = Fabricate(:post, topic: Fabricate(:private_message_topic), post_number: 3)
|
||||
|
Reference in New Issue
Block a user