mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 12:29:54 +01:00
Fix lints
This commit is contained in:
parent
23fe0a2c6e
commit
3ddba9ae8a
2 changed files with 13 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue