Skip to content

Commit 06e9ebe

Browse files
committed
Fix ruby keyword argument deprecation
1 parent 1159e6d commit 06e9ebe

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
ach (0.6.0)
4+
ach (0.6.2)
55
holidays (>= 3.1)
66

77
GEM
@@ -14,7 +14,7 @@ GEM
1414
autotest (5.0.0)
1515
minitest-autotest (~> 1.0)
1616
diff-lcs (1.3)
17-
holidays (8.4.1)
17+
holidays (8.6.0)
1818
minitest (5.14.1)
1919
minitest-autotest (1.1.1)
2020
minitest-server (~> 1.0)
@@ -51,4 +51,4 @@ DEPENDENCIES
5151
rspec (~> 3.2)
5252

5353
BUNDLED WITH
54-
2.2.2
54+
2.3.26

lib/ach/ach_file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def report eol: ACH.eol
7979

8080
def parse_fixed data
8181
# replace with a space to preserve the record-lengths
82-
encoded_data = data.encode(Encoding.find('ASCII'),{:invalid => :replace, :undef => :replace, :replace => ' '})
82+
encoded_data = data.encode(Encoding.find('ASCII'), **{:invalid => :replace, :undef => :replace, :replace => ' '})
8383
parse encoded_data.scan(/.{94}/).join("\n")
8484
end
8585

spec/ach/parse_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
it "should parse return/notification of change file" do
2323
fake_current_datetime = Date.new(2012, 10, 15)
24+
expected_datetime = DateTime.new(2012, 10, 15, 19, 32)
2425
allow(Date).to receive(:today).and_return(fake_current_datetime)
2526

2627
ach = ACH::ACHFile.new(@data)
@@ -41,7 +42,7 @@
4142
expect(bh.full_company_identification).to eq("1412345678")
4243
expect(bh.standard_entry_class_code).to eq('COR')
4344
expect(bh.company_entry_description).to eq("DESCRIPT")
44-
expect(bh.company_descriptive_date).to eq('SD1932')
45+
expect(bh.company_descriptive_date).to eq(expected_datetime)
4546
expect(bh.effective_entry_date).to eq(Date.parse('121015'))
4647
expect(bh.originating_dfi_identification).to eq("99222222")
4748

0 commit comments

Comments
 (0)