From 3d4257d8ee5e9498bd91541a84c01756e6ad7243 Mon Sep 17 00:00:00 2001 From: Postmodern Date: Sat, 6 Jul 2024 14:19:54 -0700 Subject: [PATCH] Add a spec for the default value of the `--root` option. --- spec/cli/commands/http_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/cli/commands/http_spec.rb b/spec/cli/commands/http_spec.rb index cec0ffa..35549c4 100644 --- a/spec/cli/commands/http_spec.rb +++ b/spec/cli/commands/http_spec.rb @@ -118,6 +118,10 @@ it "must default options[:port] to 8080" do expect(subject.options[:port]).to eq(8080) end + + it "must default options[:root] to '/'" do + expect(subject.options[:root]).to eq('/') + end end end end