Skip to content

Commit

Permalink
Merge pull request #181 from jrafanie/test_ruby31_and_30
Browse files Browse the repository at this point in the history
Test with ruby 3.1 and 3.0
  • Loading branch information
Fryguy authored Feb 13, 2024
2 parents 1dc3fb6 + aa00e81 commit 6106def
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
matrix:
ruby-version:
- '3.0'
- '3.1'
env:
CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}"
steps:
Expand Down
13 changes: 13 additions & 0 deletions spec/support/camcorder_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,17 @@ def self.deintercept_all
@intercepted_constructors = []
end
private_class_method :deintercept_all

class Recorder
def start
if File.exists?(filename)
contents = File.read(filename)
@recordings = YAML.respond_to?(:safe_load) ? YAML.safe_load(contents, :permitted_classes => [Camcorder::Recording, Symbol]) : YAML.load(contents)
@replaying = true
else
@recordings = {}
@replaying = false
end
end
end
end

0 comments on commit 6106def

Please sign in to comment.