Skip to content

Commit 2a19185

Browse files
authored
Merge pull request #781 from nesquena/chore/fzs-non-production
2 parents d3cb9ad + 0e31499 commit 2a19185

28 files changed

+59
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,15 @@ jobs:
3333
continue-on-error: ${{ matrix.channel != 'stable' }}
3434

3535
steps:
36-
- uses: actions/checkout@v4
36+
- uses: actions/checkout@v6
3737
- name: Set up Ruby
3838
uses: ruby/setup-ruby@v1
3939
with:
4040
ruby-version: ${{ matrix.ruby-version }}
4141
bundler-cache: true
42+
- name: Enable frozen string flags in RUBYOPT (Ruby >= 3.0)
43+
if: ${{ !(startsWith(matrix.ruby-version, '1.') || startsWith(matrix.ruby-version, '2.') ) }}
44+
run: |
45+
echo "RUBYOPT=--enable=frozen-string-literal --debug=frozen-string-literal" >> $GITHUB_ENV
4246
- name: Run tests
4347
run: bundle exec rake

test/bson_engine_test.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 File.expand_path('../teststrap', __FILE__)
24
require 'rabl/template'
35

test/builder_test.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 File.expand_path('../teststrap', __FILE__)
24

35
context "Rabl::Builder" do

test/configuration_test.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 File.expand_path('../teststrap', __FILE__)
24

35
context 'Rabl::Configuration' do

test/engine_test.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 'json'
24
require File.expand_path('../teststrap', __FILE__)
35
require 'rabl/template'

test/helpers_test.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 'tmpdir'
24
require 'pathname'
35
require File.expand_path('../teststrap', __FILE__)

test/integration/posts_controller_test.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
# Lives in <rabl>/test/integration/posts_controller_test.rb
24
# Symlinked to fixture applications
35

test/integration/rails3_2/posts_controller_test.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
# Lives in <rabl>/test/integration/posts_controller_test.rb
24
# Symlinked to fixture applications
35

test/integration/rails3_2/users_controller_test.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
# Lives in <rabl>/test/integration/users_controller_test.rb
24
# Symlinked to fixture applications
35

test/integration/rails4/posts_controller_test.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
# Lives in <rabl>/test/integration/posts_controller_test.rb
24
# Symlinked to fixture applications
35

0 commit comments

Comments
 (0)