Skip to content

Commit

Permalink
prettier & rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
KatyTaylor committed Nov 3, 2023
1 parent 240ea0a commit b0ce226
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 4 additions & 2 deletions app/models/labware_creators/multi_stamp_tubes.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module LabwareCreators
class MultiStampTubes < Base # rubocop:todo Style/Documentation
class MultiStampTubes < Base # rubocop:todo Style/Documentation, Metrics/ClassLength
include LabwareCreators::CustomPage
include SupportParent::TubeOnly

Expand Down Expand Up @@ -152,7 +152,9 @@ def create_submission_from_parent_tubes
sequencescape_submission_parameters = {
template_name: configured_params[:template_name],
request_options: configured_params[:request_options],
asset_groups: [{ assets: asset_uuids, autodetect_studies: autodetect_studies, autodetect_projects: autodetect_projects }],
asset_groups: [
{ assets: asset_uuids, autodetect_studies: autodetect_studies, autodetect_projects: autodetect_projects }
],
api: api,
user: user_uuid
}
Expand Down
4 changes: 1 addition & 3 deletions spec/models/labware_creators/multi_stamp_tubes_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@

describe '#autodetect_studies' do
it 'returns true when specified in the config' do
expect(subject).to receive(:configured_params).and_return(
{ autodetect_studies: true, request_options: {} }
)
expect(subject).to receive(:configured_params).and_return({ autodetect_studies: true, request_options: {} })
expect(subject.send(:autodetect_studies)).to eq(true)
end
it 'returns false when specified in the config' do
Expand Down

0 comments on commit b0ce226

Please sign in to comment.