mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 23:49:34 +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
@ -832,8 +832,6 @@ describe UsersController do
|
||||
end
|
||||
|
||||
context 'authentication records for' do
|
||||
let(:user) { Fabricate(:user) }
|
||||
|
||||
before do
|
||||
OmniAuth.config.test_mode = true
|
||||
|
||||
@ -2574,7 +2572,6 @@ describe UsersController do
|
||||
describe '#show' do
|
||||
context "anon" do
|
||||
let(:user) { Discourse.system_user }
|
||||
let(:other_user) { Fabricate(:user) }
|
||||
|
||||
it "returns success" do
|
||||
get "/u/#{user.username}.json"
|
||||
|
Reference in New Issue
Block a user