Appease the robot dog

This commit is contained in:
Andreas Nedbal 2022-08-20 17:08:56 +02:00 committed by Andreas Nedbal
parent b00a12b322
commit c4d01a4f74
1 changed files with 6 additions and 4 deletions

View File

@ -3,9 +3,11 @@
require "rails_helper"
describe UserController, type: :controller do
let(:user) { FactoryBot.create :user,
let(:user) do
FactoryBot.create :user,
otp_module: :disabled,
otp_secret_key: 'EJFNIJPYXXTCQSRTQY6AG7XQLAT2IDG5H7NGLJE3'}
otp_secret_key: "EJFNIJPYXXTCQSRTQY6AG7XQLAT2IDG5H7NGLJE3"
end
describe "#show" do
subject { get :show, params: { username: user.screen_name } }
@ -50,7 +52,7 @@ describe UserController, type: :controller do
end
describe "#questions" do
let!(:question) { FactoryBot.create(:question, user: user, direct: true, author_is_anonymous: false) }
let!(:question) { FactoryBot.create(:question, user:, direct: true, author_is_anonymous: false) }
subject { get :questions, params: { username: user.screen_name } }
it "renders the user/questions template" do