Fix lints

This commit is contained in:
Andreas Nedbal 2022-11-16 22:34:57 +01:00
parent 23fe0a2c6e
commit 3ddba9ae8a
2 changed files with 13 additions and 9 deletions

View File

@ -1,10 +1,14 @@
require 'rails_helper'
# frozen_string_literal: true
require "rails_helper"
describe AnswerController do
let(:user) { FactoryBot.create :user,
otp_module: :disabled,
otp_secret_key: 'AAAAAAAA'}
let(:answer) { FactoryBot.create :answer, user: user }
let(:user) do
FactoryBot.create :user,
otp_module: :disabled,
otp_secret_key: "AAAAAAAA"
end
let(:answer) { FactoryBot.create :answer, user: }
describe "#show" do
subject { get :show, params: { username: user.screen_name, id: answer.id } }
@ -22,11 +26,11 @@ describe AnswerController do
context "user opts out of search indexing" do
render_views
before(:each) {
before(:each) do
sign_in user
user.privacy_noindex = true
user.save
}
end
it "renders the answer/show template" do
subject

View File

@ -25,11 +25,11 @@ describe UserController, type: :controller do
context "user opts out of search indexing" do
render_views
before(:each) {
before(:each) do
sign_in user
user.privacy_noindex = true
user.save
}
end
it "renders the answer/show template" do
subject