Skip to content

Commit b2ade53

Browse files
committed
Removed &. syntax to make gem compatible with older ruby versions. Fixes #10
1 parent 15034e8 commit b2ade53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22
jobs:
33
build:
44
docker:
5-
- image: circleci/ruby:2.5-node-browsers
5+
- image: circleci/ruby:2.1
66

77
working_directory: ~/repo
88

lib/rspec/request_snapshot/matcher.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module Rspec::RequestSnapshot
3232
end
3333

3434
def format
35-
@options[:format]&.to_sym || RSpec.configuration.request_snapshots_default_format
35+
(@options[:format] && @options[:format].to_sym) || RSpec.configuration.request_snapshots_default_format
3636
end
3737

3838
def handler

0 commit comments

Comments
 (0)