Sha256: 2d3822f76c1636602ce6737029a72d1d8d52bc7454b4cfaea38a1b2fbe9280b0

Contents?: true

Size: 854 Bytes

Versions: 27

Compression:

Stored size: 854 Bytes

Contents

require "spec_helper"

RSpec.describe "Expressir" do
  describe "version" do
    it "has a version number" do |example|
      GC.stress = ENV["GC_STRESS"] == "true"
      puts "Running tests in GC stress mode. It may take a couple of hours ..." if GC.stress

      print "\n[#{example.description}] "
      expect(Expressir::VERSION).not_to be nil

      # Validate Object Space
      GC.start
      GC.verify_compaction_references
      GC.verify_internal_consistency
    end

    it "displays the current verison" do |example|
      print "\n[#{example.description}] "
      command = %w(version)
      output = capture_stdout { Expressir::Cli.start(command) }
      expect(output).to include(Expressir::VERSION)

      # Validate Object Space
      GC.start
      GC.verify_compaction_references
      GC.verify_internal_consistency
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
expressir-1.4.0-x86_64-linux-gnu spec/acceptance/version_spec.rb
expressir-1.4.0-x86_64-darwin spec/acceptance/version_spec.rb
expressir-1.4.0-x64-mingw32 spec/acceptance/version_spec.rb
expressir-1.4.0-x64-mingw-ucrt spec/acceptance/version_spec.rb
expressir-1.4.0-arm64-darwin spec/acceptance/version_spec.rb
expressir-1.4.0-aarch64-linux-musl spec/acceptance/version_spec.rb
expressir-1.4.0-aarch64-linux-gnu spec/acceptance/version_spec.rb