Skip to content

Commit 6297d5f

Browse files
committed
fixing the format errors
1 parent 19f051f commit 6297d5f

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

rb/lib/selenium/webdriver/common/print_options.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
# frozen_string_literal: true
22

3-
# <copyright file="print_options.rb" company="Selenium Committers">
43
# Licensed to the Software Freedom Conservancy (SFC) under one
5-
# or more contributor license agreements. See the NOTICE file
4+
# or more contributor license agreements. See the NOTICE file
65
# distributed with this work for additional information
7-
# regarding copyright ownership. The SFC licenses this file
6+
# regarding copyright ownership. The SFC licenses this file
87
# to you under the Apache License, Version 2.0 (the
98
# "License"); you may not use this file except in compliance
10-
# with the License. You may obtain a copy of the License at
9+
# with the License. You may obtain a copy of the License at
1110
#
1211
# http://www.apache.org/licenses/LICENSE-2.0
1312
#
1413
# Unless required by applicable law or agreed to in writing,
1514
# software distributed under the License is distributed on an
1615
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17-
# KIND, either express or implied. See the License for the
16+
# KIND, either express or implied. See the License for the
1817
# specific language governing permissions and limitations
1918
# under the License.
20-
# </copyright>
19+
2120

2221
module Selenium
2322
module WebDriver

rb/spec/unit/selenium/webdriver/common/print_options_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
# <copyright file="print_options_spec.rb" company="Selenium Committers">
43
# Licensed to the Software Freedom Conservancy (SFC) under one
54
# or more contributor license agreements. See the NOTICE file
65
# distributed with this work for additional information
@@ -18,6 +17,7 @@
1817
# specific language governing permissions and limitations
1918
# under the License.
2019

20+
2121
require File.expand_path('../spec_helper', __dir__)
2222
require 'selenium/webdriver/common/print_options'
2323

@@ -44,16 +44,16 @@ module WebDriver
4444
it 'can set predefined page sizes using symbols' do
4545
options.page_size = :a4
4646
expect(options.page_size).to eq({ width: 21.0, height: 29.7 })
47-
47+
4848
options.page_size = :legal
4949
expect(options.page_size).to eq({ width: 21.59, height: 35.56 })
50-
50+
5151
options.page_size = :tabloid
5252
expect(options.page_size).to eq({ width: 27.94, height: 43.18 })
53-
53+
5454
options.page_size = :letter
5555
expect(options.page_size).to eq({ width: 21.59, height: 27.94 })
56-
end
56+
end
5757

5858
it 'raises an error for unsupported predefined page size symbols' do
5959
expect { options.page_size = :invalid }.to raise_error(ArgumentError, /Invalid page size/)

0 commit comments

Comments
 (0)