Skip to content

Commit

Permalink
Expect additional optional version segment in version test. (#1913)
Browse files Browse the repository at this point in the history
  • Loading branch information
simi committed Jun 25, 2022
1 parent f705eac commit e7c5b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/spec_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def cgi.valid_options; { "FOO=BAR" => "BAZ" } end
end

it "support -v option to get version" do
test_options_server('-v').must_match(/\ARack \d\.\d \(Release: \d+\.\d+\.\d+\)\nexited\z/)
test_options_server('-v').must_match(/\ARack \d\.\d \(Release: \d+\.\d+\.\d+(\.\d+)?\)\nexited\z/)
end

it "warn for invalid --profile-mode option" do
Expand Down

0 comments on commit e7c5b94

Please sign in to comment.