Skip to content

Commit b4b9460

Browse files
author
Matt Bernier
authored
Merge pull request #51 from diegous/add-license-end-year-test
Add License end year test
2 parents 4c06e43 + fffd270 commit b4b9460

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test_ruby_http_client.rb

+7
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,11 @@ def test_method_missing
171171
assert_equal({'message' => 'success'}, response.body)
172172
assert_equal({'headers' => 'test'}, response.headers)
173173
end
174+
175+
def test_license_date_is_updated
176+
license_end_year = IO.read('LICENSE.txt').match(/Copyright \(c\) 2016-(\d{4}) SendGrid/)[1].to_i
177+
current_year = Time.new.year
178+
179+
assert_equal(current_year, license_end_year)
180+
end
174181
end

0 commit comments

Comments
 (0)