aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/version_test.rb
blob: 17a024fe7faf34d6893831c14b39a82372162af3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

require "abstract_unit"

class VersionTest < ActiveSupport::TestCase
  def test_rails_version_returns_a_string
    assert Rails.version.is_a? String
  end

  def test_rails_gem_version_returns_a_correct_gem_version_object
    assert Rails.gem_version.is_a? Gem::Version
    assert_equal Rails.version, Rails.gem_version.to_s
  end
end