Sha256: 96b2341992579d8dda26b05336f903c2b6e2785e4b3c184bdc6c17424e1c5d9b

Contents?: true

Size: 867 Bytes

Versions: 23

Compression:

Stored size: 867 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("Version #{Expressir::VERSION}")

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

Version data entries

23 entries across 23 versions & 1 rubygems

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