test/test.rb in smtpapi-0.1.1 vs test/test.rb in smtpapi-0.1.2
- old
+ new
@@ -4,11 +4,11 @@
#
# SmtpapiTest implementation
#
class SmtpapiTest < Test::Unit::TestCase
def test_version
- assert_equal('0.1.1', Smtpapi::VERSION)
+ assert_equal('0.1.2', Smtpapi::VERSION)
end
def test_empty
header = Smtpapi::Header.new
assert_equal('{}', header.json_string)
@@ -244,19 +244,19 @@
def test_contributing_exists
assert(File.file?('./CONTRIBUTING.md'))
end
def test_issue_template_exists
- assert(File.file?('./.github/ISSUE_TEMPLATE'))
+ assert(File.file?('./ISSUE_TEMPLATE.md'))
end
def test_license_exists
assert(File.file?('./LICENSE.md') || File.file?('./LICENSE.txt'))
end
def test_pull_request_template_exists
- assert(File.file?('./.github/PULL_REQUEST_TEMPLATE'))
+ assert(File.file?('./PULL_REQUEST_TEMPLATE.md'))
end
def test_readme_exists
assert(File.file?('./README.md'))
end
@@ -272,13 +272,13 @@
# def test_use_cases_exists
# assert(File.file?('./USE_CASES.md'))
# end
def test_license_date_is_updated
- license_end_year = IO.read('LICENSE.txt').match(
- /Copyright \(c\) \d{4}-(\d{4}) Twilio SendGrid/
+ license_year = IO.read('LICENSE.md').match(
+ /Copyright \(C\) (\d{4}), Twilio SendGrid/
)[1]
current_year = Time.new.year
- assert_equal(current_year, license_end_year.to_i)
+ assert_equal(current_year, license_year.to_i)
end
end