Skip to content

Commit 2a17831

Browse files
author
Kevin Paulisse
committed
Enable --frozen-string-literal for all the tests too
1 parent d7d8a6b commit 2a17831

113 files changed

Lines changed: 225 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lib/octocatalog-diff/catalog-diff/cli/helpers/fact_override.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ def initialize(input, key = nil)
2828
unless input.include?('=')
2929
raise ArgumentError, "Fact override '#{input}' is not in 'key=(data type)value' format"
3030
end
31-
input.strip!
32-
@key, raw_value = input.split('=', 2)
31+
@key, raw_value = input.strip.split('=', 2)
3332
@value = parsed_value(raw_value)
3433
elsif key.nil?
3534
message = "Define a key when the input is not a string (#{input.class} => #{input.inspect})"

spec/octocatalog-diff/integration/basic_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require_relative 'integration_helper'
24

35
describe 'a basic integration test' do

spec/octocatalog-diff/integration/bootstrap_script_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Integration tests around specifying a bootstrap script to confirm:
24
# - Bootstrap script failing => failure of octocatalog-diff process
35
# - Bootstrap debugging printed with --debug-bootstrap enabled

spec/octocatalog-diff/integration/bootstrap_then_exit_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require_relative 'integration_helper'
24

35
require 'fileutils'

spec/octocatalog-diff/integration/cached_master_dir_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require_relative 'integration_helper'
24

35
require 'fileutils'

spec/octocatalog-diff/integration/catalog_compute_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require_relative 'integration_helper'
24

35
require OctocatalogDiff::Spec.require_path('/catalog-diff/cli/catalogs')

spec/octocatalog-diff/integration/catalog_from_puppetdb_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require_relative 'integration_helper'
24
require_relative '../mocks/puppetdb'
35

spec/octocatalog-diff/integration/catalog_only_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require_relative 'integration_helper'
24

35
describe 'a catalog-only operation' do

spec/octocatalog-diff/integration/convert_file_resources_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require_relative 'integration_helper'
24

35
describe 'convert file resources' do

spec/octocatalog-diff/integration/enc_branch_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require_relative 'integration_helper'
24

35
require 'fileutils'

0 commit comments

Comments
 (0)