Sha256: 733c8d7322208643d44dde0e63606bc56c04d4953797cccb2d00d8f0b6913d8e
Contents?: true
Size: 761 Bytes
Versions: 1
Compression:
Stored size: 761 Bytes
Contents
describe CLIForge::Configuration, "#remove_argument_filter" do it "should remove the argument filter" do expect(subject.argument_filters).to eq([]) subject.register_argument_filter(:hi) { "hi" } subject.remove_argument_filter(:hi) expect(subject.argument_filters).to eq([]) end it "should not freak out if the argument filter doesn't exist" do expect(subject.argument_filters).to eq([]) subject.remove_argument_filter(:bar) expect(subject.argument_filters).to eq([]) end it "should coerce string names to symbols" do expect(subject.argument_filters).to eq([]) subject.register_argument_filter(:hi) { "hi" } subject.remove_argument_filter("hi") expect(subject.argument_filters).to eq([]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cli-forge-0.1.0 | spec/unit/cli_forge/configuration/remove_argument_filter_spec.rb |