Sha256: 29035c2c19422cc4b03720765166df908b35064298f5d9585a06700d55c4bb02

Contents?: true

Size: 524 Bytes

Versions: 2

Compression:

Stored size: 524 Bytes

Contents

require_relative "base_integration_test"

include FileUtils

class TestVersion < BaseIntegrationTest
  test_that "--help shows the gem version" do
    Given { optparse_plus "newgem" }
    When { @stdout, _, = run_app "newgem", "--help" }
    Then {
      assert_match(/v\d+\.\d+\.\d+/, @stdout)
    }
  end

  test_that "--version shows the gem version" do
    Given { optparse_plus "newgem" }
    When { @stdout, _, = run_app "newgem", "--version" }
    Then {
      assert_match(/v\d+\.\d+\.\d+/, @stdout)
    }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
optparse-plus-3.0.1 test/integration/test_version.rb
optparse-plus-3.0.0 test/integration/test_version.rb