blob: f6fb4085e9dfb20ce8699f32dc6328ed089dd882 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
require "test_helper"
describe Slop do
describe ".option_defined?" do
it "handles bad constant names" do
assert_equal false, Slop.option_defined?("Foo?Bar")
end
it "returns false if the option is not defined" do
assert_equal false, Slop.option_defined?("Foo")
end
it "returns true if the option is defined" do
assert_equal true, Slop.option_defined?("String")
end
end
end
|