Validating Version Number String Generation in PaperTrail
This test suite validates PaperTrail’s version number formatting and structure. It focuses on ensuring proper semantic versioning implementation and string representation of version components. The tests verify the correct assembly of major, minor, tiny, and pre-release version segments.
Test Coverage Overview
Implementation Analysis
Technical Details
Best Practices Demonstrated
paper-trail-gem/paper_trail
spec/paper_trail/version_number_spec.rb
# frozen_string_literal: true
require "spec_helper"
module PaperTrail
::RSpec.describe VERSION do
describe "STRING" do
it "joins the numbers into a period separated string" do
expect(described_class::STRING).to eq(
[
described_class::MAJOR,
described_class::MINOR,
described_class::TINY,
described_class::PRE
].compact.join(".")
)
end
end
end
end