Skip to content

Commit

Permalink
style: Layout/LineLength RuboCop
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-griffen authored and garethrees committed Nov 16, 2023
1 parent 1070b65 commit d729940
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 12 deletions.
3 changes: 2 additions & 1 deletion spec/factories/alaveteli_pro/draft_info_request_batches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
#

FactoryBot.define do
factory :draft_info_request_batch, class: AlaveteliPro::DraftInfoRequestBatch do
factory :draft_info_request_batch,
class: AlaveteliPro::DraftInfoRequestBatch do
user
sequence(:title) { |n| "Draft: Example Title #{n}" }
sequence(:body) { |n| "Do you have information about record #{n}?" }
Expand Down
5 changes: 3 additions & 2 deletions spec/factories/alaveteli_pro/request_summary_categories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
#

FactoryBot.define do
factory :request_summary_category, class: 'AlaveteliPro::RequestSummaryCategory',
aliases: [:waiting_response_request_summary_category] do
factory :request_summary_category,
class: 'AlaveteliPro::RequestSummaryCategory',
aliases: [:waiting_response_request_summary_category] do
slug { 'waiting_response' }
end
end
24 changes: 16 additions & 8 deletions spec/factories/info_requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@

trait :with_internal_review_request do
after(:create) do |info_request, _evaluator|
outgoing_message = create(:internal_review_request, info_request: info_request)
outgoing_message = create(:internal_review_request,
info_request: info_request)
end
end

Expand Down Expand Up @@ -273,7 +274,8 @@
end

factory :info_request_with_incoming, traits: [:with_incoming] do
factory :waiting_clarification_info_request, traits: [:waiting_clarification]
factory :waiting_clarification_info_request,
traits: [:waiting_clarification]
factory :successful_request, traits: [:successful]
factory :requires_admin_request, traits: [:requires_admin]
factory :error_message_request, traits: [:error_message]
Expand All @@ -282,16 +284,22 @@
factory :not_held_request, traits: [:not_held]
end

factory :info_request_with_plain_incoming, traits: [:with_plain_incoming]
factory :info_request_with_html_attachment, traits: [:with_incoming_with_html_attachment]
factory :info_request_with_pdf_attachment, traits: [:with_incoming_with_pdf_attachment]
factory :info_request_with_internal_review_request, traits: [:with_internal_review_request]
factory :embargoed_request, traits: [:embargoed, :with_incoming_with_pdf_attachment]
factory :info_request_with_plain_incoming,
traits: [:with_plain_incoming]
factory :info_request_with_html_attachment,
traits: [:with_incoming_with_html_attachment]
factory :info_request_with_pdf_attachment,
traits: [:with_incoming_with_pdf_attachment]
factory :info_request_with_internal_review_request,
traits: [:with_internal_review_request]
factory :embargoed_request,
traits: [:embargoed, :with_incoming_with_pdf_attachment]
factory :embargo_expiring_request, traits: [:embargo_expiring]
factory :re_embargoed_request, traits: [:re_embargoed]
factory :embargo_expired_request, traits: [:embargo_expired]
factory :external_request, traits: [:external]
factory :old_unclassified_request, traits: [:with_old_incoming, :awaiting_description]
factory :old_unclassified_request,
traits: [:with_old_incoming, :awaiting_description]
factory :awaiting_description, traits: [:awaiting_description]
factory :hidden_request, traits: [:hidden]
factory :backpage_request, traits: [:backpage]
Expand Down
5 changes: 4 additions & 1 deletion spec/factories/post_redirects.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
public_body = FactoryBot.create(:public_body)
{
"outgoing_message" => {
"body" => "Dear Ministry of Defence,\r\n\r\nThis is my test\r\n\r\n\r\nYours faithfully,\r\n\r\nSteve Day",
"body" => "Dear Ministry of Defence,\r\n\r\n" \
"This is my test\r\n\r\n\r\n" \
"Yours faithfully,\r\n\r\n" \
"Steve Day",
"what_doing"=>"normal_sort"
},
"info_request" => {
Expand Down

0 comments on commit d729940

Please sign in to comment.