Skip to content

Commit

Permalink
tests: require ostruct
Browse files Browse the repository at this point in the history
It is not part of the stdlib in Ruby 3.3, so we need to require it.
  • Loading branch information
rafaelfranca committed Sep 30, 2024
1 parent 6a67762 commit 19e73d8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/acceptance-tests-on-emulator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
ar: "~> 6.0.6"
- ruby: "3.2"
ar: "~> 6.0.6"
- ruby: "3.3"
ar: "~> 6.0.6"
env:
AR_VERSION: ${{ matrix.ar }}
steps:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/nightly-acceptance-tests-on-emulator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ jobs:
ar: 6.0.3.7
- ruby: 3.2
ar: 6.0.4
- ruby: 3.3
ar: 6.0.0
- ruby: 3.3
ar: 6.0.1
- ruby: 3.3
ar: 6.0.2.2
- ruby: 3.3
ar: 6.0.3.7
env:
AR_VERSION: ${{ matrix.ar }}
steps:
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ source "https://rubygems.org"
gemspec

gem "activerecord", ENV.fetch("AR_VERSION", "~> 6.1.6.1")
gem "ostruct"
gem "minitest", "~> 5.25.0"
gem "minitest-rg", "~> 5.3.0"
gem "pry", "~> 0.13.0"
Expand Down
1 change: 1 addition & 0 deletions acceptance/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
require "activerecord-spanner-adapter"
require "active_record/connection_adapters/spanner_adapter"
require "securerandom"
require "ostruct"
require "composite_primary_keys" if ActiveRecord::gem_version < Gem::Version.create('7.1.0')

# rubocop:disable Style/GlobalVars
Expand Down
1 change: 1 addition & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
require "google/cloud/spanner"
require "active_record"
require "activerecord-spanner-adapter"
require "ostruct"
require "active_record/connection_adapters/spanner_adapter"

module SqlStatmentAssertions
Expand Down

0 comments on commit 19e73d8

Please sign in to comment.